Updated on 2024-04-15 GMT+08:00

Creating a User Group and Assigning Permissions

As an administrator, you can create user groups, and grant them permissions by attaching policies or roles. Users you add to the user groups inherit permissions of the policies or roles. IAM provides general permissions (such as administrator or read-only permissions) for each cloud service, which you can assign to user groups. Users in the groups can then use cloud services based on the assigned permissions. For details, see Assigning Permissions to an IAM User. For details about the system-defined permissions of all cloud services, see "Permissions".

Prerequisites

Before creating a user group, learn about the following:

  • Understand the basic concepts of permissions.
  • Know permissions provided by IAM.

Creating a User Group

  1. Log in to the IAM console as the administrator.
  2. On the IAM console, choose User Groups from the navigation pane, and click Create User Group in the upper right corner.
  3. On the displayed page, enter a user group name.
  4. Click OK.

    You can create a maximum of 20 user groups. To create more user groups, increase the quota by referring to How Do I Increase My Quota?

Assigning Permissions to a User Group

To assign permissions to a user group, do as follows. To revoke permissions of a user group, see Revoking Permissions of a User Group.

  1. In the user group list, click Authorize in the row that contains the created user group.
  2. On the Authorize User Group page, select the permissions to be assigned to the user group and click Next.

    If the system-defined policies do not meet your requirements, click Create Policy in the upper right to create custom policies. You can use them to supplement system-defined policies for refined permissions control. For details, see Creating a Custom Policy.

  3. Specify the scope. The system automatically recommends an authorization scope for the permissions you selected. Table 1 describes all the authorization scopes provided by IAM.

    Table 1 Authorization scopes

    Scope

    Description

    All resources

    IAM users will be able to use all resources, including those in enterprise projects, region-specific projects, and global services under your account based on assigned permissions.

    Enterprise projects

    IAM users can use the resources in the enterprise projects you select based on the assigned permissions. This option is available only when Enterprise Project is enabled.

    For details about enterprise projects, see "Enterprise Management" in the Enterprise Management User Guide.

    Region-specific projects

    IAM users can use the resources in the region-specific projects you select based on the assigned permissions.

    If you have selected global service permissions and specified the scope as Region-specific projects, the global service permissions will be applied to all resources by default. The selected permissions for project-level services will be applied to the region-specific projects you select.

    Global services

    IAM users can use global services based on the assigned permissions. Global services are deployed with no physical regions specified. IAM users do not need to specify a region when accessing these services, such as Object Storage Service (OBS) and Content Delivery Network (CDN).

    If you have selected project-level service permissions and specified the scope as Global services, the project-level service permissions will be applied to all resources by default. The selected permissions for global services will still be applied to the global services you select.

  4. Click OK.