Help Center/ CodeArts/ User Guide/ Preparations/ Adding Project Members/ Importing Users from an Agency
Updated on 2026-01-12 GMT+08:00

Importing Users from an Agency

In the following scenarios, add CodeArts project members by importing users from an agency.

  • Scenario 1: When your enterprise needs to manage and access resources in multiple accounts, you can create users using IAM Identity Center, and add these users as CodeArts project members.
  • Scenario 2: Assume that service A depends on service B to run. If you have permissions for service A but have no permissions for service B, you can create an agency to grant service A the permissions for service B.

    For example, build tasks push images to SoftWare Repository for Container (SWR). If you have permissions to execute build tasks but are not authorized to upload images to SWR, your build tasks will fail. In this case, you can create an agency to grant CodeArts Build the required permissions to upload images to SWR.

Constraints

  • In scenario 2, CodeArts allows you to add delegated objects to the following cloud services as project members:
    • CodeArts Build
    • CodeArts Deploy
    • CodeArts Pipeline
  • When the following dialog box shows up when you log in to CodeArts, select "I grant the above permissions." CodeArts automatically creates the relevant agencies and adds them to your project. So you do not need to create them by yourself.
    Figure 1 Authorization dialog box

Procedure

Step

Description

Step 1: Create an Agency

Create an agency for your scenario.

Step 2: Import Users from the Agency

Import users from the agency as project members. Ensure that you have the General > project-role > userconfig permission. How Do I Check and Obtain Required Project Permissions?

Step 1: Create an Agency

  • Scenario 1: Create an agency by performing the following steps.
    1. Create a user
    2. Create a permission set
    3. Associate the user and permission set with the account

    After completing the preceding operations, go to the IAM console. On the Agencies page, you will see an agency whose delegated party is Cloud Service - IAM Identity Center.

  • Scenario 2: If you do not want to use the agencies created by CodeArts, create ones with the following settings by referring to Delegating Another Service for Resource Management.

    Parameter

    Description

    Basic Information

    Agency Type

    Select Cloud service.

    Cloud Service

    Select CodeArts Build, CodeArts Deploy, or CodeArts Pipeline.

    Authorization

    Select Policy/Role

    Select the required policies and roles. For example, select SWR Admin if you want to grant access to SWR.

    Scope

    Select All resources.

Step 2: Import Users from the Agency

  1. Go to the CodeArts homepage.

    1. Log in to the CodeArts console, click , and select a region where you have enabled CodeArts.
    2. Click Go to Workspace.

      If your account uses the old billing mode (see Old Billing Modes), click Access Service.

  2. Click the target project name to go to the project.
  3. In the navigation pane, choose Settings > Members.
  4. Click the Member View tab, choose Add Members, and select From Agencies.
  5. In the displayed dialog box, select users, specify a role for each user, and click Save.

    Figure 2 Importing users from an agency

    The new members are displayed in the list.

Helpful Links