Skip to main content

Accès aux dépôts appartenant aux utilisateurs dans votre entreprise

Vous pouvez accéder temporairement à un dépôt appartenant à un utilisateur au sein de votre entreprise.

Qui peut utiliser cette fonctionnalité ?

Enterprise owners can temporarily access user-owned repositories.

Note

Temporarily accessing user-owned repositories is currently in public preview 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 GitHub, click your profile photo.

  2. Depending on your environment, click Your enterprise, or click Your enterprises then click the enterprise you want to view.

  3. On the left side of the page, in the enterprise account sidebar, click Policies.

  4. Under " Policies", click Member privileges.

  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.