Help Center> IoT Device Access> FAQs> Solution Consulting> Why Was I Prompted to Grant Security Administrator Permissions When I Create a Rule or Set Resource File Storage?
Updated on 2023-02-16 GMT+08:00

Why Was I Prompted to Grant Security Administrator Permissions When I Create a Rule or Set Resource File Storage?

This is because the Identity and Access Management (IAM) user that you are using is not granted with the required management permissions. Use the administrator account to perform one of the following methods to grant permissions to the IAM user.

Method 1 (recommended): Create a custom policy (that allows agency creation, role query, and more) and attach it to the user group to which the IAM user belongs.

  1. Log in to the IAM console, choose Permissions > Policies/Roles in the left navigation pane, and click Create Custom Policy in the upper right corner.

    • Policy Name: Enter a policy name.
    • Policy View: Select JSON.
    • Policy Content: Set this parameter as follows:
      {
          "Version": "1.1",
          "Statement": [
              {
                  "Action": [
                      "iam:agencies:createAgency",
                      "iam:agencies:listAgencies",
                      "iam:agencies:getAgency",
                      "iam:permissions:listRolesForAgencyOnDomain",
                      "iam:permissions:listRolesForAgencyOnProject",
                      "iam:permissions:grantRoleToAgencyOnProject",
                      "iam:permissions:revokeRoleFromAgencyOnProject",
                      "iam:permissions:grantRoleToAgencyOnDomain",
                      "iam:permissions:revokeRoleFromAgencyOnDomain",
                      "iam:permissions:checkRoleForAgencyOnProject",
                      "iam:permissions:checkRoleForAgencyOnDomain",
                      "iam:roles:createRole",
                      "iam:roles:listRoles",
                      "iam:roles:getRole"
                  ],
                  "Effect": "Allow"
              }
          ]
      }
  2. Click OK. The custom policy is created.
  3. Choose User Groups in the left navigation pane and click the target user group.
  4. Click the Permissions tab and click Authorize.

  5. On the Select Policy/Role page, select the policy created in 1, and click Next.

  6. On the Select Scope page, select All Resources, and click OK.

Method 2: Grant the Security Administrator permissions to the user group to which the IAM user belongs.

  1. Log in to the IAM console, choose User Groups in the left navigation pane, and click the target user group.
  2. Click the Permissions tab, search for Security Administrator, select Security Administrator, and click Next.

    Note: Users with the Security Administrator permissions can perform all actions such as agency, role, and user management. Exercise caution when assigning the permissions.

  3. On the Select Scope page, select All Resources, and click OK.

Solution Consulting FAQs

more