Creating a User and Granting Permissions

This section describes how to use IAM to implement fine-grained permissions control for your GaussDB NoSQL resources. With IAM, you can:

  • Create IAM users for employees based on the organizational structure of your enterprise. Each IAM user has their own security credentials, providing access to GaussDB NoSQL resources.
  • Grant only the permissions required for users to perform a task.
  • Entrust a HUAWEI CLOUD account or cloud service to perform professional and efficient O&M on your GaussDB NoSQL resources.

If your HUAWEI CLOUD account does not need individual IAM users, then you may skip over this topic.

This section describes the procedure for granting permissions (see Figure 1).

Prerequisites

Learn about the permissions (see Permissions Management) supported by GaussDB NoSQL and choose policies or roles according to your requirements. For the system policies of other services, see Permissions Policies.

Process Flow

Figure 1 Process of granting GaussDB NoSQL permissions
  1. Create a user group and assign permissions to it.

    Create a user group on the IAM console, and assign the GaussDB NoSQL ReadOnlyAccess policy to the group.

  2. Create an IAM user.

    Create a user on the IAM console and add the user to the group created in 1.

  3. Log in and verify permissions.

    Log in to the GaussDB NoSQL console by using the created user, and verify that the user only has read permissions for GaussDB NoSQL.

    • Choose Service List > GaussDB NoSQL and click Buy DB Instance. If you cannot buy a DB instance, the GaussDB NoSQL ReadOnlyAccess permission has taken effect.
    • Choose any other service in the Service List (for example, there is only the GaussDB NoSQL ReadOnlyAccess policy). If a message appears indicating insufficient permissions to access the service, the GaussDB NoSQL ReadOnlyAccess policy has already taken effect.