All Products
Search
Document Center

Object Storage Service:Grant file permissions to other users in ossbrowser 2.0

Last Updated:Mar 20, 2026

Use ossbrowser 2.0 to grant another user read-only or read/write access to a specific file or folder in your bucket — without sharing your own credentials.

Important

You cannot grant file permissions if you log on with an Alibaba Cloud account. To grant permissions, use one of the other logon methods. You cannot grant file permissions if you log on to ossbrowser 2.0 using a CloudBox Endpoint.

Prerequisites

Before you begin, make sure you have:

  • Access to ossbrowser 2.0 using the AccessKey (AK) of a RAM user — not an Alibaba Cloud account

  • A RAM user with the following policies attached:

    • AliyunRAMFullAccess — permissions to manage Resource Access Management (RAM)

    • AliyunSTSAssumeRoleAccess — permissions to call the AssumeRole operation of Security Token Service (STS)

For setup instructions, see Create a RAM user and Grant permissions to a RAM user.

Choose an authorization method

ossbrowser 2.0 provides two authorization methods. Choose based on your account type and how long the access should last.

Direct AuthorizationRole Assumption
Who can use itAlibaba Cloud account holders onlyRAM users only
Access durationLong-term (permanent until revoked)Temporary (expires automatically)
What it grantsRead-only or read/write access to a specific bucket or folderTemporary access to a specific folder
How it worksDirectly attaches permissions to RAM users, user groups, or roles under your accountCalls the AssumeRole operation to generate a temporary authorization code
What the recipient getsA new RAM user's AK and authorization codeA time-limited authorization code

Grant access

Step 1: Open the authorization dialog

  1. Log on to ossbrowser 2.0 using an AK.

  2. Click the name of the target bucket.

  3. Select the checkbox next to the file or folder you want to share.

  4. At the top of the page, click More > Authorize.

Step 2: Configure and confirm authorization

Select the method that matches your account type and access requirement, then follow the corresponding steps.

Direct Authorization

  1. Select Direct Authorization.

  2. Configure the parameters as shown in the following figure. In this example, Grantee is set to New RAM User. Alternatively, select RAM User, Role, or User Group.

    image

  3. Click Confirm Authorization.

  4. Copy and save the new RAM user's AK and authorization code.

    Click Policy Content to view the generated policy text. Copy this text to use when editing authorization policies for RAM users or roles in the RAM console.

    image

  5. Click the image icon in the lower-left corner to log out.

    image

What the recipient gets: Share the AK and authorization code with the recipient. They can use either credential to log on to ossbrowser 2.0 and access the authorized folder.

Role Assumption

  1. Select Role Assumption.

  2. Configure the parameters as shown in the following figure.

    Set the expiry period to the minimum duration the recipient needs. Once the authorization code expires, it becomes invalid and access is revoked automatically.

    image

  3. Click Confirm Authorization.

  4. Click Copy Authorization Code.

    image

  5. Click the image icon in the lower-left corner to log out.

    image

What the recipient gets: Share the authorization code with the recipient. They use it to log on to ossbrowser 2.0 and access the specified folder. The code is invalid after it expires.