Help Center> Software Repository for Container> User Guide> Permissions Management> Creating a User and Granting SWR Permissions
Updated on 2024-06-19 GMT+08:00

Creating a User and Granting SWR Permissions

System-defined permissions in role/policy-based authorization provided by Identity and Access Management (IAM) let you control access to your SWR resources. With IAM, you can:

  • Create IAM users or user groups for personnel based on your enterprise's organizational structure. Each IAM user has their own identity credentials for accessing SWR resources.
  • Grant users only the permissions required to perform a given task based on their job responsibilities.
  • Entrust a Huawei Cloud account or cloud service to perform efficient O&M on your SWR resources.

If your Huawei Cloud account does not require individual IAM users for permissions management, you can skip this section.

This section describes the procedure for granting user permissions.

Prerequisite

Before granting permissions to user groups, learn about system-defined permissions in Role/Policy-based Permissions Management. To grant permissions for other services, learn about all system-defined permissions supported by IAM.

Process Flow

Figure 1 Process of granting SWR permissions
  1. Create a user group and assign permissions to it.

    Create a user group on the IAM console, and grant the SWR Administrator permissions to the group.

  2. Create an IAM user and add it to the user group.

    Create a user on the IAM console and add the user to the group created in 1.

  3. Log in and verify permissions.

    Log in to the management console using the IAM user. Switch to the authorized region. If the following permissions can be successfully performed, the permissions are assigned successfully:

    1. Choose Service List > SoftWare Repository for Container. The SWR console is displayed.
    2. In the navigation pane on the left, choose Organization Management, click Create Organization in the upper right corner, and enter an organization name to create an organization.
    3. In the navigation pane on the left, choose My Images and click Upload Through SWR in the upper right corner. Select the organization created in the previous step and a local image file. The image is successfully uploaded.