Granting IAM User Groups Basic Permissions on All OBS Resources
Scenario
This topic describes how to use OBS system roles and policies preset in IAM to grant basic operation permissions for all OBS resources to multiple IAM users or user groups. The following table lists the permissions supported by preset system roles and policies.
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 (excluding 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 ReadOnlyAccess operations on OBS and perform basic operations on objects, such as uploading, downloading, 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
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.
Although the error message is displayed, the IAM users can still call the APIs or SDKs to perform authorized operations.
When OBS OperateAccess is allowed, they can upload or download objects on OBS Console or OBS Browser+.
Procedure
- Log in to Huawei Cloud and click Console in the upper right corner.
- On the console, hover over the username in the upper right corner, and choose Identity and Access Management from the drop-down list.
- Create a user group and assign permissions.
Apply system roles or policies that meet requirements to the user group by following the instructions provided in the IAM document.
- Add the IAM user you want to authorize to the created user group.
Due to data caching, it takes about 10 to 15 minutes for the configured permissions to take effect.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot