Skip to main content

Accessing user-owned repositories in your enterprise

You can temporarily access a repository owned by a user within your enterprise.

Who can use this feature?

Enterprise owners can temporarily access user-owned repositories.

Note: Temporarily accessing user-owned repositories is currently in beta for Enterprise Managed Users and subject to change.

About temporary access to user-owned repositories

If your enterprise uses Enterprise Managed Users, and you've allowed users to create repositories owned by their user accounts, you can temporarily access any user-owned repository within your enterprise.

When you temporarily access a repository, you get admin access to the repository for two hours. You can take all the same actions as the repository owner, including editing the repository, changing the repository's settings, transferring the repository, and deleting the repository.

The repository owner will receive an email informing them that you have enabled temporary access to the repository, and a repo.temporary_access_granted event will be added to the audit log for your enterprise and the user's security log.

Temporarily accessing a repository

  1. In the top-right corner of, click your profile photo, then click Your enterprises.

  2. In the list of enterprises, click the enterprise you want to view.

  3. In the enterprise account sidebar, click Policies.

  4. Under " Policies", click Repositories.

  5. In the "Repository creation" section, under "Block the creation of user namespace repositories," click View user namespace repositories in your enterprise.

    Screenshot of the "Repository creation" section of the "Repository policies" page. A link, labeled with an eye icon and "View user namespace repositories in your enterprise," is outlined in orange.

  6. To the right of the repository you want to access, select the dropdown menu, then click Enable temporary access.

    Screenshot of the list of user namespace repositories. To the right of a repository, a kebab icon is outlined in dark orange.

  7. Read the warnings, then click Yes, enable temporary access.