Help Center/ CodeArts Artifact/ User Guide/ Self-Hosted Repos 1.0/ Configuring a Self-hosted Repo 1.0
Updated on 2024-10-16 GMT+08:00

Configuring a Self-hosted Repo 1.0

A new member must be assigned a specified role to use CodeArts Artifact. For details, see Configuring Repository Permissions 2.0.

Managing Repository Permissions

After a repository is created, the mapping between project members and repository roles is as follows:

  • The project creator and project manager are repository administrators.
  • The developer, test manager, tester, and operation manager are repository developers.
  • The participant, viewer, and custom roles are repository viewers.

To add or remove permissions for self-hosted repo members, perform the following steps:

  1. Go to the self-hosted repo page and select the target repository from the list.
  2. Click Settings on the right of the page.
  3. Click the Repository Permissions tab. The added repository members are displayed in the list.

  4. Add members.

    Click Add Members in the upper left corner, select a member, and click Next.

    Figure 1 Adding members

  5. Assign roles to members.

    Select Repository Administrator, Repository Developer, or Repository Viewer from the Repository Roles drop-down list.

    Figure 2 Assigning roles to members

  6. Click OK. The member is added and the role is configured. The new member is displayed in the list.
  7. In the member list, select multiple members and click Repository Roles to configure their roles in batches.

    Figure 3 Configuring repository roles in batches

    Table 1 lists the operation permissions of each repository role.

    Table 1 Role permissions of a self-hosted repo

    Operation/Role

    Tenant administrator

    Non-tenant administrator

    Repository administrator

    Developer

    Viewer

    Repository administrator

    Developer

    Viewer

    Create a repository

    ×

    ×

    ×

    Edit a repository

    ×

    ×

    ×

    Manage the association between repositories and projects

    ×

    ×

    ×

    Upload a component

    ×

    ×

    Download a component

    Delete components

    ×

    ×

    Restore components

    ×

    ×

    Permanently delete a component

    ×

    ×

    Delete a repository

    ×

    ×

    ×

    ×

    ×

    Restore a repository

    ×

    ×

    Permanently delete a repository

    ×

    ×

    ×

    ×

    ×

    Clear all

    ×

    ×

    ×

    Restore all

    ×

    ×

    ×

    Manage user permissions

    ×

    ×

Managing User Permissions in Batches by Tenant Account/Repository Administrator

The tenant account can add members to or delete members from a self-hosted repo. The administrator of each repository can manage roles of the members in the repository.

  1. Click the username in the upper right corner, and select All Account Settings from the drop-down list.
  2. Choose Artifact > User Permissions from the navigation pane.
  3. Click Add Member, select a member, and click OK.
  4. Assign roles to members.

    1. In the Operation column of the target member, click .
    2. Click the Unassigned tab.
    3. Select the desired repositories and roles, and click OK.
      Figure 4 Assigning repository roles

  5. (Optional) Perform the operations listed in Table 2 on the User Permissions page.

    Table 2 Related operations

    Operation

    Description

    Delete members

    To delete a member, click in the corresponding row. To delete multiple members, select them and click Delete.

    Modify member permissions

    Click . In the displayed dialog box, select the repository name, and click OK.

    View members

    Select the package type and repository name in the upper left corner of the page. The member list of the repository is displayed.

    Click Reset in the upper part of the page to view the list of all members.

    Remove members

    Select a repository and click in the member list to remove members from the repository.

    NOTE:

    Removing a member from a repository does not affect their role or permissions in other repositories.

    Deleting a member removes them from all related repositories, along with their associated permissions.

    Search for members

    Enter a member name or keyword in the search box at the top of the page, and click to search for a repository member.

    Reset public password (only for tenant administrators)

    The public password is used by the CodeArts Build to upload and download components to a self-hosted repo and is invisible on the page. Click Reset Public Password in the upper right corner of the page to reset the password.