Creating IAM Users and Granting Them Permissions to Use CSS

You can use Identity and Access Management (IAM) for fine-grained permissions control for CSS. With IAM, you can:

If your account does not require individual IAM users, you may skip this section.

This section describes the procedure for granting permissions.

Prerequisites

You know what permissions to assign to which users. CSS supports administrator permissions and read-only permissions. For details, see Permissions Management.

Process Flow

Figure 1 Process of granting CSS permissions
  1. Create a user group and assign permissions.

    Create a user group on the IAM console, and assign the CSS ReadOnlyAccess permission to the group.

  2. Create an IAM user and add it to a user group.

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

    By adding a user to a user group, you assign all the permissions that this user group has to that user. All users in a group have the same permissions.

  3. Log in and verify permissions.

    Log in to the console as the created user, switch to the authorized region, and verify the permissions.

    • Choose Service List > Cloud Search Service. Then click Create Cluster on the CSS console. If the cluster cannot be purchased (assuming that the current permissions include only CSS ReadOnlyAccess), the CSS ReadOnlyAccess policy has already taken effect.
    • Choose any other service from Service List. (Assume that the current policy contains only CSS ReadOnlyAccess.) If a message appears indicating insufficient permissions to access the service, the CSS ReadOnlyAccess policy has already taken effect.

Examples of CSS Custom Policies

Custom policies can be created to supplement the system-defined policies of CSS. For the actions supported for custom policies, see section "Permissions Policies and Supported Actions" in the Cloud Search Service API Reference.

You can create custom policies in either of the following ways:

For details about how to create custom policies, see Creating a Custom Policy. The following provides examples of custom CSS policies.

the IAM permissions and data plane cluster permissions of CSS are managed separately. To enhance data-plane security, you need to use the security mode.

To let an IAM user access an OBS bucket, you need to grant the GetBucketStoragePolicy, GetBucketLocation, ListBucket, and ListAllMyBuckets permissions to the user.