You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Authorizing other accounts
Allowing another account to upload and download objects in a bucket of the current account
Copy page
Download PDF
Allowing another account to upload and download objects in a bucket of the current account
This topic explains how to allow another account to upload and download objects to and from a bucket of the current account.​
Scenario​
  • Principal: Account 210000****.​
  • Resource: Bucket bucketname1.​
  • Actions: GetObject and PutObject.​
Notes​
If a configured permission does not take effect, we recommend that you retry later, as there is a delay.​
Steps​
  1. Log in to the TOS console.​
  1. In the left navigation pane, click Buckets.​
  1. In the top menu bar, select the project of the bucket you want to manage.​
  1. On the Buckets page, click the name of the bucket.​
  1. In the left navigation pane, select Permissions > Bucket policies.​
  1. Edit the policy using your preferred view.​
  • ​
    Visual view
    JSON view
    ​
    1. Click Create policy.​
    1. On the Create Bucket Authorization Policy page, select Custom Policy and click Next.​
    1. Configure the following parameters.​
    • ​
      Category​
      Parameter​
      Description​
      Basic configuration​
      Policy configuration method​
      Use the default option, i.e., Visual view.​
      ​
      Policy name​
      Enter a name for the policy. The policy name must be unique within a bucket.​
      Effect​
      Effect​
      Select the effect of the policy. In this example, use the default value.​
      • Allow (Default): Allows the matched requests.​
      • Deny: Denies the matched requests.​
      Authorized user​
      Authorized user​
      Use the default option, i.e., Specified account.​
      ​
      Other accounts​
      Select Other main account and enter the account ID.​
      Resource​
      Resource scope​
      Select Objects in bucket and All objects.​
      Action​
      General Action​
      It is optional. You can also select one or more actions you want to authorize based on your needs. For more information, see Supported actions.​
      ​
      Bucket Action​
      ​
      ​
      Object Action​
      Select GetObject and PutObject. You can also select other actions as needed. For more information, see Object actions.​
      ​
      Operational strategy​
      Use the default option, i.e., Include the above actions. This option allows users to perform the specified actions.​
      Condition (Optional)​
      -​
      Click the Add Field icon and set the condition and value.​
      For more information, see Conditions.​
      ​
    1. Save your settings by clicking Next.​
    1. After verifying the details, click Create.​
    • Then, you will see the bucket policy that you just created in the policy list.​
    ​
Next steps​
Once the bucket policy has been created, the authorized account can upload and download objects to and from the specified bucket using one of the following methods:​
  • Use an API or SDK to upload and download objects to and from the bucket.​
  • Use the resource path to access the bucket via TOS browser and upload and download objects.​
  • Use tosutil commands to upload and download objects to and from the bucket.​
warning​
TOS does not support listing buckets from other accounts. Despite having the aforementioned permissions, the authorized account cannot upload and download objects to and from the bucket via the console.​
Last updated: 2026.08.14 16:23:30