What Should I Do If the Agency List Fails to Be Obtained During Agency Configuration?
When a workspace- or job-level agency is configured, the following error is reported when the agency list is viewed:
Policy doesn't allow iam:agencies:listAgencies to be performed.
Add the View Agency List policy for the current user.
You can create a custom policy (query the agency list based on specified conditions) and assign it to a user group for refined access control.
- Log in to the HUAWEI CLOUD management console.
- 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.
- In the navigation pane, choose Permissions. Then, click Create Custom Policy.
- Enter a policy name.
- Set Scope to Global services. The scope you set is where the custom policy takes effect. In this example, the custom policy has the permissions required to view the agency lists based on specified conditions.
- Set Policy View to Visual editor.
- Configure a policy in Policy Content.
- Select Allow.
- Select Identity and Access Management (IAM) for Select service.
- Select iam:agencies:listAgencies for Select action.
- Click OK.
- Add the policy defined in 7 to the group to which the current user belongs. For details, see Creating a User Group and Granting Permissions.
The current user can log out of the system and then log in again to obtain the agency list.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.