Help Center/ CodeArts/ User Guide/ Preparations/ Adding Project Members/ Inviting Users from Another Account
Updated on 2025-08-15 GMT+08:00

Inviting Users from Another Account

If your team collaborates with another team on a project, you can use either team's account to create a project, and invite users from the other team to join the project. Ensure that both teams have HUAWEI IDs.

  • There are two accounts: A and B. Account A created CodeArts project X and wants to invite account B's user to join project X.
  • The operations in this section will be performed on the CodeArts console and homepage.
    • CodeArts console: Account A authorizes account B. Account B then accepts the authorization.
    • CodeArts homepage: Account A goes to project X and adds a user of account B.
  • CodeArts allows you to invite the following users from other accounts to join your project:

Video Tutorial

Constraints

The authorized account (B) and authorizing account (A) must be from the same site.

Procedure

Step

Description

Preparations

A user of account B obtains their account ID and IAM user ID.

Step 1: Authorize an Enterprise Account on the CodeArts Console

A user of account A authorizes account B. The user must be granted the Tenant Administrator role or the DevCloud Console FullAccess policy.

For details about how to grant the Tenant Administrator role or the DevCloud Console FullAccess policy to a user, see Creating a User Group and Assigning Permissions.

Step 2: Accept an Authorization from Another Enterprise Account on the CodeArts Console

A user of account B accepts the authorization of account A. The user must be granted the Tenant Administrator role or the DevCloud Console FullAccess policy.

Step 3: Invite a User from Another Enterprise to a CodeArts Project

A user of account A adds account B's user to project X. Account A's user must have the DevUC > project-role > userconfig permission. For details, see How Do I Check and Obtain Required Project Permissions?

Preparations

  • Obtain the account ID and IAM user ID of the user you want to invite. For details, see API Credentials.
    Figure 1 API Credentials
  • Before you can invite an IAM Identity Center user of account B to join your project, account B needs to perform the following operations:
    1. Create a user
    2. Create a permission set
    3. Associate the user and permission set with the account

    After completing the preceding operations, account B goes to the IAM console. On the Agencies page, account B will see an agency whose delegated party is the IAM Identity Center cloud service. Account B obtains the agency ID.

    Figure 2 Obtaining an agency ID
  • Invited accounts can choose to accept authorizations automatically or manually on the Enterprise Account Authorization page of the CodeArts console.

    This section describes how to manually accept an authorization. To accept authorizations automatically, skip Step 2: Accept an Authorization from Another Enterprise Account on the CodeArts Console.

    Figure 3 Authorization mode

Step 1: Authorize an Enterprise Account on the CodeArts Console

This step is performed by account A.

  1. Log in to the CodeArts console, click , and select a region.
  2. In the navigation pane, choose Enterprise Account Authorization.
  3. Click the Granted Authorizations tab, and then click Authorize Enterprise Account.
  4. In the displayed dialog box, enter the account ID obtained in Preparations, and click Authorize.

    A new record is displayed in the list.
    Figure 4 Inviting an enterprise account
    Table 1 Authorization status description

    Status

    Description

    Pending

    The authorization is neither accepted nor rejected and is pending processing by the authorized account.

    After the operation described in Step 2: Accept an Authorization from Another Enterprise Account on the CodeArts Console is completed, the status changes to Enabled or Rejected.

    Enabled

    The authorization has been accepted. To revoke the authorization, click Cancel Authorization. Then the invitation is removed from the list. This operation cannot be undone.

    Rejected

    The authorization has been rejected. To invite the account again, click Re-authorize. Then the status changes to Pending.

Step 2: Accept an Authorization from Another Enterprise Account on the CodeArts Console

This step is performed by account B.

  1. Log in to the CodeArts console, click , and select a region.
  2. In the navigation pane, choose Enterprise Account Authorization.
  3. Click the Received Authorizations tab. The received authorization is in the Pending state.
  4. Accept or reject the authorization.

    • Accept: In the displayed dialog box, click OK. The status changes to Enabled.

      To delete the invitation, click Remove. This operation cannot be undone.

    • Reject: In the displayed dialog box, click OK. The status changes to Rejected.

Step 3: Invite a User from Another Enterprise to a CodeArts Project

This step is performed by account A.

  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, and choose Add Members > From Another Account.
  5. In the displayed dialog box, select the account of the users to invite, specify the invitation mode, enter the ID, and click Invite.

    • User ID: For inviting IAM users. Enter the IAM user ID obtained in Preparations.
    • Agency ID: For inviting IAM Identity Center users. Enter the agency ID obtained in Preparations.

Helpful Links