Help Center> Object Storage Migration Service> FAQ> Product Consulting> How Do I Obtain Required Permissions for the Source and Destination Platform Accounts?

How Do I Obtain Required Permissions for the Source and Destination Platform Accounts?

Source Permissions

The following uses an OBS bucket on HUAWEI CLOUD as the source bucket. If your source bucket is on the other cloud service platform, contact engineers of the cloud service platform.

The source platform account needs the following permissions:
  • Listing all buckets
  • Obtaining bucket location
  • Listing objects
  • Obtaining object metadata
  • Obtaining object content

You can use either of the following methods to obtain required permissions for the source platform account:

  1. Using system-defined policy OBS Administrator.

    For details, see Creating a User Group and Assigning Permissions.

  2. Creating a custom policy
    1. Log in to HUAWEI CLOUD and click Console in the upper right corner.
    2. On the management console, hover the mouse pointer over the username in the upper right corner, and choose Identity and Access Management from the drop-down list.
    3. In the navigation pane on the left, choose Permissions.
    4. Click Create Custom Policy in the upper right corner.

      The Create Custom Policy page is displayed.

    5. Specify a policy name, and set Scope to Global services and Policy View to JSON.
    6. Copy the following content to the box next to Policy Content and click OK.
      {
          "Version": "1.1",
          "Statement": [
              {
                  "Action": [
                      "obs:bucket:ListAllMyBuckets",
                      "obs:bucket:GetBucketLocation",
                      "obs:bucket:ListBucket",
                      "obs:object:GetObject"
                  ],
                  "Resource": [
                      "obs:*:*:bucket:*",
                      "obs:*:*:object:*"
                  ],
                  "Effect": "Allow"
              }
          ]
      }

Destination Permissions

The destination platform account needs the following permissions:
  • Listing all buckets
  • Obtaining bucket location
  • Listing objects
  • Obtaining object metadata
  • Obtaining object content
  • Listing uploaded parts
  • Restoring archive objects
You can use either of the following methods to obtain required permissions for the destination platform account:
  1. Use system-defined policy OBS Administrator.

    For details, see Creating a User Group and Assigning Permissions.

  2. Creating a custom policy.
    1. Log in to HUAWEI CLOUD and click Console in the upper right corner.
    2. On the management console, hover the mouse pointer over the username in the upper right corner, and choose Identity and Access Management from the drop-down list.
    3. In the navigation pane on the left, choose Permissions.
    4. Click Create Custom Policy in the upper right corner.

      The Create Custom Policy page is displayed.

    5. Specify a policy name, and set Scope to Global services and Policy View to JSON.
    6. Copy the following content to the box next to Policy Content and click OK.
      {
          "Version": "1.1",
          "Statement": [
              {
                  "Action": [
                      "obs:bucket:ListBucket",
                      "obs:object:PutObject",
                      "obs:object:RestoreObject",
                      "obs:object:GetObject",
                      "obs:bucket:GetBucketLocation",
                      "obs:object:ListMultipartUploadParts"
                  ],
                  "Resource": [
                      "obs:*:*:bucket:*",
                      "obs:*:*:object:*"
                  ],
                  "Effect": "Allow"
              },
              {
                  "Action": [
                      "obs:bucket:ListBucketMultipartUploads"
                  ],
                  "Resource": [
                      "obs:*:*:bucket:*"
                  ],
                  "Effect": "Allow"
              },
              {
                  "Action": [
                      "obs:bucket:ListAllMyBuckets"
                  ],
                  "Effect": "Allow"
              }
          ]
      }