Site admin dashboard

您可以直接在 GitHub AE 中使用站点管理面板来管理您企业中的用户、组织和仓库。

To access the dashboard, in the upper-right corner of any page, click . Rocket ship icon for accessing site admin settings

Refer to this section of the site admin dashboard to search for users and repositories, and to query the audit log.

Explore

Data for GitHub's trending page is calculated into daily, weekly, and monthly time spans for both repositories and developers. You can see when this data was last cached and queue up new trending calculation jobs from the Explore section.

Audit log

GitHub AE keeps a running log of audited actions that you can query.

By default, the audit log shows you a list of all audited actions in reverse chronological order. You can filter this list by entering key-value pairs in the Query text box and then clicking Search, as explained in "Searching the audit log."

For more information on audit logging in general, see "Audit logging." For a full list of audited actions, see "Audited actions."

Reports

If you need to get information on the users, organizations, and repositories in your enterprise, you would ordinarily fetch JSON data through the GitHub API. Unfortunately, the API may not provide all of the data that you want and it requires a bit of technical expertise to use. The site admin dashboard offers a Reports section as an alternative, making it easy for you to download CSV reports with most of the information that you are likely to need for users, organizations, and repositories.

Specifically, you can download CSV reports that list

  • all users
  • all users who have been active within the last month
  • all users who have been inactive for one month or more
  • all users who have been suspended
  • all organizations
  • all repositories

You can also access these reports programmatically via standard HTTP authentication with a site admin account. You must use a personal access token with the site_admin scope. For more information, see "Creating a personal access token."

For example, here is how you would download the "all users" report using cURL:

curl -L -u username:token http(s)://hostname/stafftools/reports/all_users.csv

To access the other reports programmatically, replace all_users with active_users, dormant_users, suspended_users, all_organizations, or all_repositories.

Note: The initial curl request will return a 202 HTTP response if there are no cached reports available; a report will be generated in the background. You can send a second request to download the report. You can use a password or an OAuth token with the site_admin scope in place of a password.

User reports

KeyDescription
created_atWhen the user account was created (as an ISO 8601 timestamp)
idAccount ID for the user or organization
loginAccount's login name
emailAccount's primary email address
roleWhether the account is an admin or an ordinary user
suspended?Whether the account has been suspended
last_logged_ipMost recent IP address to log into the account
reposNumber of repositories owned by the account
ssh_keysNumber of SSH keys registered to the account
org_membershipsNumber of organizations to which the account belongs
dormant?Whether the account is dormant
last_activeWhen the account was last active (as an ISO 8601 timestamp)
raw_loginRaw login information (in JSON format)
2fa_enabled?Whether the user has enabled two-factor authentication

Organization reports

KeyDescription
idOrganization ID
created_atWhen the organization was created
loginOrganization's login name
emailOrganization's primary email address
ownersNumber of organization owners
membersNumber of organization members
teamsNumber of organization teams
reposNumber of organization repositories
2fa_required?Whether the organization requires two-factor authentication

Repository reports

KeyDescription
created_atWhen the repository was created
owner_idID of the repository's owner
owner_typeWhether the repository is owned by a user or an organization
owner_nameName of the repository's owner
idRepository ID
nameRepository name
visibilityWhether the repository is public or private
readable_sizeRepository's size in a human-readable format
raw_sizeRepository's size as a number
collaboratorsNumber of repository collaborators
fork?Whether the repository is a fork
deleted?Whether the repository has been deleted

Reserved logins

Certain words are reserved for internal use in your enterprise, which means that these words cannot be used as usernames.

For example, the following words are reserved, among others:

  • admin
  • enterprise
  • login
  • staff
  • support

For the full list or reserved words, navigate to "Reserved logins" in the site admin dashboard.

Enterprise overview

Refer to this section of the site admin dashboard to manage organizations, people, policies, and settings.

Repositories

This is a list of the repositories on your enterprise. You can click on a repository name and access functions for administering the repository.

All users

Here you can see all of the users on your enterprise, and initiate an SSH key audit.

Site admins

Here you can see all of the administrators on your enterprise, and initiate an SSH key audit.

Dormant users

Here you can see and suspend all of the inactive users on your enterprise. A user account is considered to be inactive ("dormant") when it:

  • Has existed for longer than the dormancy threshold that's set for your enterprise.
  • Has not generated any activity within that time period.
  • Is not a site administrator.

休眠阈值是指用户必须多久不活动才被视为休眠。 默认休眠阈值是 90 天,但您可以自定义 your enterprise 的休眠阈值。 For more information, see "Managing dormant users."

Suspended users

Here you can see all of the users who have been suspended on your enterprise, and initiate an SSH key audit.

此文档对您有帮助吗?

隐私政策

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或者, 了解如何参与。