跳到主要内容

Custom Roles

Organization administrators can create custom user roles based on the organization's actual needs and flexibly define role names and permissions.

Add Role / Custom Role


  1. Click on "Roles and Permissions" under Member Management to enter the roles and permissions management page.

  1. After clicking "Add Role" in the top right corner, input the role name and role description, then click "Next".

  1. You can configure role permissions by selecting:

Currently supported resources and permission points include:

ResourcePermission PointPermission Description
OrganizationSettingsPermission for setting basic information of the organization, including organization name, description, logo, email, website, location, etc.
ProjectCreatePermission to create projects within the organization; note: if using independent mode, the creator will be added as a project member by default.
ForkPermission to fork projects within the organization.
SettingsPermission for basic information settings of organization projects, including project name, description, modules, etc.
CodePushPermission to push code within the organization's projects; note: if the project has protected branches, the rules of the protected branches take precedence.
DownloadPermission to download code within the organization's projects, including clone and download zip package.
IssueCreatePermission to create issues within the organization's projects.
UpdatePermission to update issues within the organization's projects, including setting issue assignees, labels, milestones, related PRs, boards, etc.
Close/ReopenPermission to close or reopen issues within the organization's projects; note: the creator of an issue defaults to having update permissions for the title and description, and close/reopen permissions.
PinPermission to pin or unpin issues within the organization's projects; note: each project can pin up to 6 issues.
LockPermission to lock or unlock issues within the organization's projects; when locked, only project members can participate in issue discussions.
Project LabelCreatePermission to create labels within the organization's projects.
UpdatePermission to update labels within the organization's projects.
DeletePermission to delete labels within the organization's projects.
MilestoneCreatePermission to create milestones within the organization's projects.
UpdatePermission to update milestones within the organization's projects.
DeletePermission to delete milestones within the organization's projects.
BranchCreatePermission to create branches within the organization's projects; note: if the project has protected branches, the rules of the protected branches take precedence.
DeletePermission to delete branches within the organization's projects; note: if the project has protected branches, the rules of the protected branches take precedence.
TagCreatePermission to create tags within the organization's projects; note: if the project has protected tags, the rules of the protected tags take precedence.
DeletePermission to delete tags within the organization's projects; note: if the project has protected tags, the rules of the protected tags take precedence.
Pull Request (PR)CreatePermission to create PRs within the organization's projects.
UpdatePermission to update PRs within the organization's projects, including setting PR assignees, labels, reviewers, testers, milestones, related PRs, boards, etc.
ReviewPermission to review PRs within the organization's projects.
AuditPermission to audit PRs within the organization's projects, including resetting all review statuses.
TestPermission to test PRs within the organization's projects, including resetting all test statuses.
MergePermission to merge PRs within the organization's projects; note: if the target branch has protected branches, the rules of the protected branches take precedence.
ClosePermission to close PRs within the organization's projects.
ReopenPermission to reopen PRs within the organization's projects.
CommentCreatePermission for comments within the organization's projects (including issue comments, PR comments, PR code reviews, commit comments, discussion comments), and organization discussion comments.
ResolvePermission to resolve PR code review problems within the organization's projects, marking specific code review issues as resolved.
DiscussionCreatePermission to create discussions within the organization's projects or organization-wide discussions.
UpdatePermission to update discussions within the organization's projects or organization-wide discussions, including adopting answers for question-type discussions.
LockPermission to lock or unlock discussions within the organization's projects or organization-wide discussions.
PinPermission to pin or unpin discussions within the organization's projects or organization-wide discussions, including overall and single-category pins.
Close/ReopenPermission to close or reopen discussions within the organization's projects or organization-wide discussions.
BoardUpdatePermission to update organization boards, including updating board content, settings, adding custom field settings, etc.
Close/ReopenPermission to close or reopen organization boards.
  1. Organization and project member management permissions do not support customization.
  2. In custom permissions, only project label permissions are available; organization label permissions are not applicable. Organization labels are still managed and operated by organization administrators and maintainers.
  3. Some associated resource permissions exist in custom permission resources. When configuring custom role permissions, the system will automatically select dependent permissions.

Interdependent permission points include:

ResourcePermissionDependent ResourceDependent Permission
tagCreateCodePush + Download
tagDeleteCodePush + Download
CodePushCodeDownload
ProjectForkCodeDownload
PRMergeCodePush
BoardUpdateIssue + PRUpdate
BranchCreateCodePush + Download
BranchDeleteCodePush + Download
MilestoneUpdateIssue + PRUpdate
  1. After completing the permission configuration, click "Save". If creation is successful, it indicates that the custom role has been created successfully.

  1. The newly created role will appear in the role list. On the left side of the role row, you can edit the role:
    1. Click "Edit" to edit the role name and role description.
    2. Click "Permission Edit" to reconfigure the role permissions.
    3. Click "View" to view the role name, description, and selected permissions.
    4. Click "Delete" to delete the custom role.

Custom Role Restrictions

When creating custom roles, please note:

  1. Maximum Number of Roles: Each organization can create up to 50 custom roles.
  2. Role Name: Role names must be unique and cannot duplicate system preset role names.

After creating the role, you can start inviting members. Invited members will be assigned all the permissions configured for the role.