Granting Basic Operation Permissions on All OBS Resources to IAM User Groups

Scenario

This case describes how to use the IAM preset system roles and policies to grant basic operation permissions on all OBS resources to multiple IAM users or user groups under a HUAWEI CLOUD account. The following table lists the permissions supported by preset system roles and policies.

Table 1 OBS system permissions

Role/Policy Name

Description

Type

Tenant Administrator

Users with this permission can perform all operations on all services except IAM.

System-defined role

Tenant Guest

Users with this permission can perform read-only operations on all services except IAM.

System-defined role

OBS Administrator

Users with this permission are OBS administrators and can perform any operations on all OBS resources under the account.

System-defined policy

OBS Buckets Viewer

Users with this permission can list buckets, obtain basic bucket information, and obtain bucket metadata.

System-defined role

OBS ReadOnlyAccess

Users with this permission can list buckets, obtain basic bucket information, obtain bucket metadata, and list objects (not the objects that have been versioned).

NOTE:

If a user with this permission fails to list objects on OBS Console, there may be multiple versions of objects in the bucket. In this case, you need to grant the user the obs:bucket:ListBucketVersions permission so that the user can view different versions of objects on OBS Console.

System-defined policy

OBS OperateAccess

Users with this permission can perform all OBS ReadOnlyAccess operations and perform basic object operations, such as uploading objects, downloading objects, deleting objects, and obtaining object ACLs.

NOTE:

If a user with this permission fails to list objects on OBS Console, there may be multiple versions of objects in the bucket. In this case, you need to grant the user the obs:bucket:ListBucketVersions permission so that the user can view different versions of objects on OBS Console.

System-defined policy

Recommended Configuration

IAM system roles and policies

Configuration Precautions

After a system role or policy is configured according to this case, if you log in to the system using OBS Console or OBS Browser+, a message may be displayed indicating that you do not have the permission. Error cause

Authorized permissions are valid, though operations on the console or client are restricted. You can call the APIs directly or through SDKs.

On OBS Console or OBS Browser+, the OBS OperateAccess permission allows you to upload and download objects.

Procedure

  1. Log in to HUAWEI CLOUD and click Console in the upper right corner.
  2. On the console, hover your cursor over the username in the upper right corner, and choose Identity and Access Management from the drop-down list.
  3. Create a user group and assign permissions.

    Add system roles or policies that meet the service scenario requirements to the user group by following the instructions provided in the IAM document.

  4. Add the IAM user to be authorized to the user group created by referring to Adding Users to or Removing Users from a User Group. The authorization is complete.

    Due to the cache, it takes about 10 to 15 minutes for the custom policy to take effect.