About Setting up Users Groups and Policies

Oracle NoSQL Database Cloud Service uses Oracle Cloud Infrastructure Identity and Access Management (IAM) to provide secure access to Oracle Cloud. Oracle Cloud Infrastructure IAM enables you to create user accounts and give users permission to inspect, read, use, or manage tables.

The way you manage users, groups, and dynamic groups for Oracle NoSQL Database Cloud Service depends on whether or not your cloud account or tenancy has been updated to use Oracle Cloud Infrastructure Identity and Access Management (IAM)identity domains. It’s easy to determine when your OCI tenancy has been updated to use Identity and Access Management (IAM) Identity Domains.

The OCI console for Tenancy with Identity Domain is shown below.

Create Users in OCI Using IAM Identity Domains

The OCI console for Tenancy without Identity Domain is shown below.

Create Users in OCI Using IAM

For more information, see Do You Have Access to Identity Domains?

Setting Up Users, Groups, Dynamic Groups and Policies Using Identity and Access Management

Oracle NoSQL Database Cloud Service uses Oracle Cloud Infrastructure Identity and Access Management (IAM) to provide secure access to Oracle Cloud. Oracle Cloud Infrastructure IAM enables you to create user accounts and give users permission to inspect, read, use, or manage tables.

If you are authenticating as a User Principal (using API signing key), see Setting up Users, Groups and Policies. Alternatively, if you are authenticating as an Instance Principal or Resource Principal, see Setting up Dynamic Group and Policies.

Setting up Users, Groups and Policies

  1. Sign in to your Cloud Account as Cloud Account Administrator.

  2. In Oracle Cloud Infrastructure Console, add one or more users.

    • Choose one of the following based on your tenancy(whether having Identity Domains or not having Identity Domains):

      • Tenancy with Identity Domains: Perform the following:

        • Open the navigation menu and select Identity & Security.

        • Under Identity, select Domains. This opens the Domains page.

        • Select the Compartment filter next to Applied filters. Select your compartment from the drop-down list and select Apply filter.

        • Select the identity domain you want to work in. On the User management tab, go to the Users section.

      • Tenancy without Identity Domains: Open the navigation menu and select Identity & Security. Under Identity, select Users.

    • Select Create.

    • Enter details about the user, and select Create.

  3. In Oracle Cloud Infrastructure Console, create an OCI group.

    • Choose one of the following based on your tenancy(whether having Identity Domains or not having Identity Domains):

      • Tenancy with Identity Domains: Perform the following:

        • Open the navigation menu and select Identity & Security.

        • Under Identity, select Domains. This opens the Domains page.

        • Select the Compartment filter next to Applied filters. Select your compartment from the drop-down list and select Apply filter.

        • Select the identity domain you want to work in. On the User management tab, scroll down to the Groups section.

      • Tenancy without Identity Domains: Open the navigation menu and select Identity & Security. Under Identity, select Groups.

    • Select Create group.

    • Enter details about the group. For example, if you're creating a policy that gives users permissions to fully manage Oracle NoSQL Database Cloud Service tables you might name the group nosql_service_admin (or similar) and include a short description such as “Users with permissions to set up and manageOracle NoSQL Database Cloud Servicetables onOracle Cloud Infrastructure” (or similar).

    • Select Create.

  4. Create a policy that gives users belonging to an OCI group, specific access permissions to Oracle NoSQL Database Cloud Service tables or compartments.

    • Open the navigation menu and select Identity & Security.

    • Under Identity, select Policies.

    • Select the Compartment filter next to Applied filters. Select your compartment from the drop-down list and select Apply filter.

    • Select Create Policy.

      For details and examples, see Policies Reference and Typical Policy Statements to Manage Tables .

      If you're unfamiliar about how policies work, see How Policies Work.

  5. To manage and use NoSQL tables through Oracle NoSQL Database Cloud Service SDKs, the user must set up the API keys. See Authentication to connect to Oracle NoSQL Database.

Note: Federated users can also manage and use Oracle NoSQL Database Cloud Service tables. This requires the service administrator to set up the federation in Oracle Cloud Infrastructure Identity and Access Management. See Federating with Identity Providers.

Users belonging to any groups mentioned in the policy statement get their new permission when they next sign in to the Console.

Setting up Dynamic Group and Policies

Prior to making a call to an Oracle Cloud Infrastructure resource using either resource principals or instance principals, an Oracle Cloud Infrastructure tenancy administrator must create Oracle Cloud Infrastructure policies, dynamic groups, and rules that define the resource principal or instance principal privileges.