Answers: <p>A <strong>Personal Access Token</strong> in GitLab with <code>read_repository</code> and <code>write_repository</code> permissions grants <strong>access to all projects that you have access to</strong>, not just the projects in your namespace. This means the token will allow you to read and write to any repository where you have the necessary permissions.</p>
  <p>If you need to restrict access to specific projects, you might want to consider using <strong>Project Access Tokens or Group Access Tokens</strong>, which can be scoped to individual projects or groups.</p>
  
Answers: CC BY-SA 4.0
Answers: 2024-08-22T15:20:33.767Z
Answers: 2024-08-22T15:20:33.767Z
Answers: YassineLbk
Answers: <p>This token is tied to your account means any access you have in GitLab will be available in the API (If you have selected that in your token).</p>
  
Answers: CC BY-SA 4.0
Answers: 2024-07-23T12:24:55.637Z
Answers: 2024-07-23T12:24:55.637Z
Answers: Arslan Zaidi
Body: <p>In Gitlab I can create a Personal Access Token for <code>read_repository</code> and <code>write_repository</code> permissions. Does this token grant access to just my projects in my namespace, or all projects that I have access to?</p>
  <blockquote>
  <p><code>read_repository</code>
  Grants read-only access to repositories on private projects using Git-over-HTTP or the Repository Files API.</p>
  <p><code>write_repository</code>
  Grants read-write access to repositories on private projects using Git-over-HTTP (not using the API).</p>
  </blockquote>
  
Tags: <gitlab>
Title: Do Gitlab Personal Access Tokens grant permissions on repos you own, or all repos you have access to?
UserDisplayName: Evan Carroll
ThreadText: # Do Gitlab Personal Access Tokens grant permissions on repos you own, or all repos you have access to?
  
  (Asked by: username_0 on 2023-08-15)
  
  In Gitlab I can create a Personal Access Token for `read_repository` and `write_repository` permissions. Does this token grant access to just my projects in my namespace, or all projects that I have access to?
  
  > `read_repository`
  > Grants read-only access to repositories on private projects using Git-over-HTTP or the Repository Files API.
  >
  > `write_repository`
  > Grants read-write access to repositories on private projects using Git-over-HTTP (not using the API).
  
  **Tags:** gitlab
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2024-08-22. Score: 0
  
  A **Personal Access Token** in GitLab with `read_repository` and `write_repository` permissions grants **access to all projects that you have access to**, not just the projects in your namespace. This means the token will allow you to read and write to any repository where you have the necessary permissions.
  
  If you need to restrict access to specific projects, you might want to consider using **Project Access Tokens or Group Access Tokens**, which can be scoped to individual projects or groups.
  
  
  ---
  
  ### Answer by username_2 on 2024-07-23. Score: 0
  
  This token is tied to your account means any access you have in GitLab will be available in the API (If you have selected that in your token).
  
  
  ---
  
  