Granting Specified Operation Permissions on All OBS Resources to IAM User Groups
Scenario
This case describes how to grant specified operation permissions on OBS resources to multiple IAM users or user groups under a HUAWEI CLOUD account.
Recommended Configuration
IAM custom policies
Configuration Precautions
After the configuration is complete, you can the specified operations using APIs or SDKs. However, if you log in to OBS Console or OBS Browser+ to perform those operations, an error is reported indicating that you do not have the permission.
However, when you log in to OBS Console or OBS Browser+, more APIs (such as ListAllMyBuckets and ListBucket) are called to load the bucket list and object list. If your permissions do not cover the APIs for accessing OBS Console or OBS Browser+, obs:bucket:ListAllMyBuckets, and obs:bucket:ListBucket, your access is denied, or you are prompted that the operation is not allowed.
To allow IAM users to operate buckets and objects on OBS Console or OBS Browser+, add at least the obs:bucket:ListAllMyBuckets and obs:bucket:ListBucket permissions to the custom policy.
Procedure
- Log in to HUAWEI CLOUD and click Console in the upper right corner.
- 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.
- In the navigation pane, choose Permissions > Policies/Roles > Create Custom Policy.
- Configure parameters for a custom policy. Figure 1 Configuring a custom policy
Table 1 Parameters for configuring a custom policy Parameter
Description
Policy Name
Name of the custom policy
Policy View
Set this parameter based on your own habits. Example: Visual editor.
Policy Content
- Select Allow.
- Select Object Storage Service (OBS).
- Select the operations to be authorized.
For details about operations and permissions supported by OBS, see Bucket-Related Actions and Object-Related Actions.
- Select All for resources.
Scope
The default value is Global services.
- Click OK. The custom policy is created.
- Create a user group and assign permissions.
Add the created custom policy to the user group by following the instructions in the IAM document.
- 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 data caching, it takes about 10 to 15 minutes for a custom policy to take effect after the authorization.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.