Granting Anonymous Users Permission to Access Folders
If all objects in a folder need to be accessible to anonymous users, you can configure a bucket policy or an object policy to grant anonymous users the permission to access the folder. In this example, a bucket policy is used. If you want to use an object policy to grant permission, select the target folder and configure an object policy. Parameters in both types of policies are the same.
Procedure
- In the bucket list, click the bucket you want to operate to go to the Objects page.
- In the navigation pane, choose Permissions > Bucket Policies.
- Click Create.
- Configure parameters listed in the table below.
Table 1 Granting folder access permissions to anonymous users Parameter
Description
Configuration method
Choose Visual Editor.
Policy Name
Enter a custom policy name.
Policy content
Effect
Allow
Principals
- Select All accounts.
Resources
- Select Specified objects.
- Enter an object name prefix for the resource path, for example, folder-001/*, which indicates that the policy applies to all objects in folder folder-001.
Actions
- Choose Customize.
- Select GetObject (to obtain object content and metadata).
- Click Create in the lower right corner.
Verification
- After the permission is successfully configured, select an object in the folder and click the object name to view its details. The object link (URL) is displayed on the details page. Share the URL over the Internet, so that all users can access or download the object through the Internet.
- Use the URL to access the object in a browser. Anyone can access the object.
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