Skip to main content

此版本的 GitHub Enterprise Server 将于以下日期停止服务 2026-03-17. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

配置组织成员关系的可见性

您可以将企业中新组织成员的可见性设置为公开或私密。 您还可以阻止成员将其可见性改为非默认值。

You can also enforce your default setting on all current organization members in your instance using a command-line utility. For example, if you'd like to require every organization member's visibility to be public, you can set the default to public and enforce the default for all new members in the admin settings, and then use the command-line utility to enforce the public setting on existing members.

  1. In the top-right corner of GitHub Enterprise Server, click your profile picture, then click Enterprise settings.
  2. On the left side of the page, in the enterprise account sidebar, click Policies.
  3. Under Policies, click Options.
  4. Under "Default organization membership visibility", select the drop-down menu, and click Private or Public.
  5. Optionally, to prevent members from changing their membership visibility from the default, select Enforce for all enterprise members.
    Screenshot of the "Default organization membership visibility" section. The "Enforce for all enterprise members" checkbox is outlined.
  6. If you'd like to enforce your new visibility setting on all existing members, use the ghe-org-membership-update command-line utility. For more information, see Command-line utilities.