Authorizing Folder Access Permissions to Anonymous Users¶
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 authorize the permission, select the target folder and configure the object policy directly. Parameters are the same as those in the bucket policy.
In the bucket list, click the bucket you want to operate. The Overview page is displayed.
In the navigation pane, choose Permissions.
Choose Bucket Policies > Custom Bucket Policies.
Click Create Bucket Policy. The Create Bucket Policy dialog box is displayed.
Configure parameters according to the following table, so that you can grant anonymous users the permission to access the folder and objects in it:
Select Other account, and enter an asterisk (*) as the account ID, indicating all anonymous users.
Set this parameter to all objects in the selected folder. If the folder name is folder-001, enter the value folder-001/*.
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.
An anonymous user can use the URL to access the object in a browser.