Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page
Help Center/ Identity and Access Management/ Best Practices/ Agency Configuration/ Assigning Agency Permissions (by a Delegated Party)

Assigning Agency Permissions (by a Delegated Party)

Updated on 2024-11-07 GMT+08:00

Company B is a professional O&M company. It becomes a delegated party after being authorized by company A. Company B assigns permissions to one or more of its IAM users to manage company A's resources.

Requirements

  • Company B wants to authorize its employees (IAM users) to manage the delegated resources of company A.
  • If company A creates multiple agencies for company B, company B can allocate the agencies to different employees. This will allow employees to only manage specific agencies.

Solution

  • Account B creates users on the IAM console, and grants the permissions (including Agent Operator) required for managing delegated resources to the users.
  • Account B creates a custom policy and grants permissions defined in this policy only to one agency. In this way, users with this policy attached only have permissions to manage that agency.

Procedure

Account B performs the following procedure to authorize IAM users to manage resources of specific agencies. After authorization, the IAM users of account B can switch their roles to account A to manage account A's resources. To do this, account B needs to have obtained the account (HUAWEI ID), agency name, and agency ID of the delegating party.

  1. Create a user group and grant permissions to it.

    1. In the navigation pane, choose User Groups.
    2. On the User Groups page, click Create User Group.
    3. Enter the user group name, for example, Agency Management.
    4. Click OK.

      The user group is displayed in the user group list.

    5. In the row containing the target user group, click Authorize.
      NOTE:
      • To authorize a user to manage only the resources of a specific agency, perform the following steps.
      • To authorize a user to manage the resources of all agencies, go to the next step.
      1. On the Select Policy/Role page, click Create Policy in the upper right.
      2. Enter a policy name, for example, Agency 1 for Managing Company A.
      3. Select JSON for Policy View.
      4. In the Policy Content area, enter the following content:
        {
                "Version": "1.1",
                "Statement": [
                        {
                                "Action": [
                                        "iam:agencies:assume"
                                ],
                                "Resource": {
                                        "uri": [
                                                "/iam/agencies/b36b1258b5dc41a4aa8255508xxx..."
                                        ]
                                },
                                "Effect": "Allow"
                        }
                ]
        }
        NOTE:

        Replace b36b1258b5dc41a4aa8255508xxx... with the agency ID obtained from a delegating party. Do not make any other changes.

      5. Click Next.
    6. Select the Agency 1 for Managing Company A agency created in the previous step or the Agent Operator role.
      NOTE:
      • The custom policy allows the user only to manage resources of a specific agency ID.
      • The Agent Operator role allows the user to manage the resources of all agencies.
    7. Specify the authorization scope.
    8. Click OK.

  2. Create a user and add the user to the user group.

    1. In the navigation pane, choose Users.
    2. On the Users page, click Create User.
    3. On the Create User page, enter a username and email address.
    4. For Access Type, select Management console access.
    5. For Credential Type, select Set by user.
    6. Enable login protection, select a verification mode, and click Next.
    7. Select the user group Agency Management created in 2 and click Create.

  3. Switch the role.

    1. Log in to Huawei Cloud as the user created in 2. For more information, see Logging In as an IAM User.
    2. Click the username in the upper right corner, and choose Switch Role.
      Figure 1 Switching roles
    3. Enter the account name of the delegating party. The agency created by the delegating party is displayed automatically.
      NOTE:

      If an agency other than the agencies created by the delegating party is displayed, a message is displayed indicating that you do not have access permissions. Select the correct agency in the Agency Name drop-down list box.

    4. Click OK to switch to the delegating account.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback