Skip to main content

管理自定义组织角色

可以在组织的设置中创建、编辑和分配自定义组织角色。

谁可以使用此功能?

Organization owners and users with the "Manage custom organization roles" permission

Organizations on GitHub Enterprise Cloud

关于自定义组织角色

通过创建自定义组织角色,可以对你向组织设置授予的访问权限进行更精细的控制。 组织角色是为组织成员授予权限来管理特定设置子集的方法,分配角色后,便不必授予成员对组织及其存储库的完全管理控制。 例如,可以创建包含“查看组织审核日志”权限的角色。有关详细信息,请参阅“关于自定义组织角色”。

如果你是组织所有者或是拥有“查看组织角色”或“管理自定义组织角色”权限的自定义角色,则可以查看组织的自定义角色。 可按照“创建自定义角色”中介绍的初始步骤来查找“自定义角色”页。 具体步骤因有权访问的其他设置页面而异。

要管理自定义组织角色的使用,请参阅“使用组织角色

创建自定义角色

具有“管理自定义组织角色”权限的组织所有者和用户可以创建最多 10 个自定义组织角色。

  1. 在 GitHub 的右上角,选择个人资料照片,然后单击 你的组织”。
  2. 在组织旁边,单击“设置”。
  3. 在边栏的“访问权限”部分中,单击“组织角色”,然后单击“角色管理”。************
  4. Click Create a role.
  5. Type a name and description for the custom role.
  6. Under "Add permissions", click the text field, then select the permissions you want to add to the custom role. For more information about the available permissions, see "关于自定义组织角色."
  7. Click Create role.

编辑自定义角色

  1. 在 GitHub 的右上角,选择个人资料照片,然后单击 你的组织”。
  2. 在组织旁边,单击“设置”。
  3. 在边栏的“访问权限”部分中,单击“组织角色”,然后单击“角色管理”。************
  4. Next to the role you want to edit, select , then click Edit role.
  5. Change the role as required, then click Update role.

删除自定义角色

  1. 在 GitHub 的右上角,选择个人资料照片,然后单击 你的组织”。
  2. 在组织旁边,单击“设置”。
  3. 在边栏的“访问权限”部分中,单击“组织角色”,然后单击“角色管理”。************
  4. Next to the role you want to edit, select , then click Delete role.
  5. Read the details in the dialog to confirm you want to delete the role, then click Delete role.