Help Center/ Identity and Access Management/ Best Practices/ Assigning Permissions to O&M Personnel
Updated on 2024-11-07 GMT+08:00

Assigning Permissions to O&M Personnel

Assume that a company has purchased different resources on Huawei Cloud, and has multiple functional teams that need to use one or more types of resources. The company can use IAM to assign permissions to different personnel based on their job functions for refined permissions control.

Figure 1 Permissions management model
  • Resource O&M team
  • Accounting management team
  • Resource monitoring team
  • Computing O&M team
  • Network O&M team
  • Database O&M team
  • Security O&M team

Assign required permissions to different functional teams in the company according to Table 1. For details about permissions of all Huawei Cloud services, see System-defined Permissions.

Table 1 System-defined permissions

Functional Team

Policy

Permissions Description

Resource O&M team

Tenant Administrator

Full permissions for all cloud services, including Billing Center, Resource Center, and My Account, but excluding IAM. Tenant Administrator grants permission to purchase resources, manage renewals, and view bills.

Accounting management team

BSS Administrator

Full permissions for Billing Center, Resource Center, and My Account. The BSS Administrator role includes the permissions for managing invoices, orders, contracts, and renewals, and viewing bills. Users assigned only this role cannot purchase resources unless you grant them the administrator permissions of the corresponding service.

Resource monitoring team

Tenant Guest

Read-only permissions for all cloud services except IAM.

Computing O&M team

ECS FullAccess

Full permissions for Elastic Cloud Server (ECS), including permissions for purchasing ECS resources. Users assigned only the ECS FullAccess policy cannot view the usage of ECS resources and other resources unless you assign them the BSS Administrator role.

CCE FullAccess

Full permissions for Cloud Container Engine (CCE), including permissions for purchasing CCE resources. Users assigned only the CCE FullAccess policy cannot view the usage of CCE resources and other resources unless you assign them the BSS Administrator role.

AutoScaling FullAccess

Full permissions for Auto Scaling (AS), including purchasing AS resources. Users assigned only the AutoScaling FullAccess policy cannot view the usage of AS resources and other resources unless you assign them the BSS Administrator role.

Network O&M team

VPC FullAccess

Full permissions for Virtual Private Cloud (VPC), including purchasing VPC resources. Users assigned only the VPC FullAccess policy cannot view the usage of VPC resources and other resources unless you assign them the BSS Administrator role.

ELB FullAccess

Full permissions for Elastic Load Balance (ELB), including purchasing load balancers. Users assigned only the ELB FullAccess policy cannot view the usage of ELB resources and other resources unless you assign them the BSS Administrator role.

Database O&M team

RDS FullAccess

Full permissions for Relational Database Service (RDS), including purchasing RDS resources. Users assigned only the RDS FullAccess policy cannot view the usage of RDS resources and other resources unless you assign them the BSS Administrator role.

DDS FullAccess

Full permissions for Document Database Service (DDS), including purchasing DDS resources. Users assigned only the DDS FullAccess policy cannot view the usage of DDS resources and other resources unless you assign them the BSS Administrator role.

DDM FullAccess

Full permissions for Distributed Database Middleware (DDM).

Security O&M team

Anti-DDoS Administrator

Full permissions for Anti-DDoS.

CAD Administrator

Full permissions for Advanced Anti-DDoS (AAD).

KMS Administrator

Full permissions for Data Encryption Workshop (DEW), including purchasing DEW resources. Users assigned only the KMS Administrator role cannot view the usage of DEW resources and other resources unless you assign them the BSS Administrator role.

Assigning Permissions to O&M Personnel

The following is an example procedure for specifying an employee in the company as the network O&M owner in the CN-Hong Kong region. If you want to specify an employee as any other O&M owner, grant the required permissions to the employee according to Table 1.

Step 1: Create a User Group and Assign Permissions

  1. Log in to the Huawei Cloud management console.
  2. On the management console, hover the mouse pointer over the username in the upper right corner and then choose Identity and Access Management.
  3. On the IAM console, choose User Groups in the navigation pane. Then click Create User Group.

    Figure 2 Creating a user group

  4. Enter the user group name Network_OM, and click OK.

    Figure 3 Entering a group name

  5. In the row containing the user group, click Authorize.

    Figure 4 Authorizing a user group

  6. Search for and select VPC FullAccess and ELB FullAccess, and click Next.
  7. Specify the authorization scope as Region-specific projects and select CN-Hong Kong.

    • If users in the group need to view resource usage, attach the BSS Administrator role to the group for the same project.
    • When specifying an employee as the security O&M owner according to Table 1, you must grant the employee other related permissions because the security services interwork with other cloud services. For more information, see Assigning Dependency Roles.

Step 2: Create an IAM User

  1. In the navigation pane of the IAM console, choose Users. Then click Create User.
  2. Specify the user details and access type. To create more users, click Add User. A maximum of 10 users can be created at a time.

    Figure 5 Configuring user information
    • Users can log in to Huawei Cloud using the username, email address, or mobile number.
    • If users forget their password, they can reset it through email address or mobile number verification. If no email addresses or mobile numbers have been bound to users, users need to contact the administrator to reset their passwords.
    Table 2 User information

    Parameter

    Description

    Username

    Username that will be used to log in to Huawei Cloud, for example, James and Alice. This field is required.

    Email Address

    Email address of the IAM user that can be used as a login credential. IAM users can bind an email address after they are created. This field is required if you have specified Set by user as the credential type.

    Mobile Number

    Mobile phone number of the IAM user that can be used as a login credential. IAM users can bind a mobile number after they are created. This field is optional.

    Description

    Additional information about the IAM user. This field is optional.

    Figure 6 Setting the access type
    • Programmatic access: Select this option to allow the user to access Huawei Cloud services using development tools, such as APIs, CLI, and SDKs. You can generate an access key or set a password for the user.
    • Management console access: Select this option to allow the user to access Huawei Cloud services using the management console. You can set or generate a password for the user or request the user to set a password at first login.
      • If the user accesses cloud services only by using the management console, select Management console access for Access Type and Password for Credential Type.
      • If the user accesses cloud services only through programmatic calls, select Programmatic access for Access Type and Access key for Credential Type
      • If the user needs to use a password as the credential for programmatic access to certain APIs, select Programmatic access for Access Type and Password for Credential Type
      • If the user needs to perform access key verification when using certain services in the console, select Programmatic access and Management console access for Access Type and Access key and Password for Credential Type. For example, the user needs to perform access key verification when creating a data migration job in the Cloud Data Migration (CDM) console.
      Table 3 Setting the credential type and login protection

      Credential Type and Login Protection

      Description

      Access key

      After users are created, you can download the access keys (AK/SK) generated for these users.

      Each user can have a maximum of two access keys.

      Password

      Set now

      Set a password for the user and determine whether to require the user to reset the password at first login.

      If you are the user, select this option and set a password for login. You do not need to select Require password reset at first login.

      Automatically generated

      The system automatically generates a login password for the user. After the user is created, download the EXCEL password file and provide the password to the user. The user can then use this password for login.

      This option is available only when you create a single user.

      Set by user

      A one-time login URL will be emailed to the user. The user can click on the link to log in to the console and set a password.

      If you do not use the IAM user, select this option and enter the email address and mobile number of the IAM user. The user can then set a password by clicking on the one-time login URL sent over email. The login URL is valid for seven days.

      Login Protection

      Enable (Recommended)

      If login protection is enabled, the IAM user needs to enter a verification code in addition to the username and password during login. Enable this function for account security.

      You can select SMS, email, or virtual MFA device for verification during login.

      Disable

      If login protection is disabled, you can enable it later by following the instructions provided in Viewing or Modifying IAM User Information.

  3. (Optional) Click Next to add the users to user groups.

    • The user will inherit the permissions assigned to the user groups to which the user belongs.
    • You can also create new groups as required.
    • If the user will be an administrator, add the user to the default group admin.
    • Each user can be added to multiple user groups.

  4. Click Next. If you have specified the access type as Programmatic access in Step 2, download the access key on the Finish page.

    Figure 7 Users created successfully

Step 3: Log In as an IAM User and Verify Permissions

An IAM user can log in using different methods. The following describes how to log in through the login page. For more login methods, see Logging In to Huawei Cloud.

  1. On the Huawei Cloud login page, click IAM User.
  2. On the IAM User Login page, enter the account name, user name, and password of the created user.

    Figure 8 Logging in as an IAM user
    • Account name: Name of the account used to create the IAM user
    • Username and password: The username and password specified for the IAM user

  3. On the management console, switch to the CN-Hong Kong region.
  4. Choose Service List > Virtual Private Cloud, Elastic Load Balance, and Domain Name Service, and perform operations on each service console to verify that the permissions have been successfully assigned.
  5. Choose a service other than the preceding services from Service List to ensure that the service cannot be accessed.
  6. On the management console, switch to a region other than CN-Hong Kong and ensure that the VPC, ELB, and DNS consoles cannot be accessed.