Answers: <p>If you have admin access to the project, you can also update the existing connection and all the pipelines using that connection will be updated at the same time.</p>
  <p>Use a Private/Incognito browser tab if trying to set up a service account connection.</p>
  <ol>
  <li>Go to the project page</li>
  <li>Project Settings</li>
  <li>Service Connections</li>
  <li>Select a connection</li>
  <li>Edit</li>
  <li>Change - This will auto log in with existing Bitbucket connection or prompt for Bitbucket credentials.</li>
  <li>Save &amp; Close Edit</li>
  </ol>
  
Answers: CC BY-SA 4.0
Answers: 2024-09-05T16:43:45.223Z
Answers: 2024-09-05T16:43:45.223Z
Answers: Denise Skidmore
Answers: <p>I found it in the GUI.</p>
  <ol>
  <li>Pipelines -&gt; Select Pipeline -&gt; Edit -&gt; … menu -&gt; Triggers –&gt; YAML tab -&gt; Get sources -&gt; Authorized using connection {old connection} Change</li>
  <li>Re-select the repository</li>
  <li>Save</li>
  </ol>
  <p>It's advisable to use a service account for the new connection that won't go away when the company has turnover.</p>
  
Answers: CC BY-SA 4.0
Answers: 2024-08-27T20:57:15.653Z
Answers: 2024-08-27T20:57:15.653Z
Answers: Denise Skidmore
Body: <p>A previous engineer set up our Azure pipelines with Bitbucket repositories.  He has left the company, his Bitbucket privileges were revoked, so the Azure pipelines can no longer reach Bitbucket.</p>
  <p><a href="https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/bitbucket?view=azure-devops&amp;tabs=yaml" rel="nofollow noreferrer">Azure documentation</a> says we should just be prompted for authentication when setting up a new pipeline to Bitbucket Cloud repository, (and that does work for me) but doesn't say how to update this connection on an existing pipeline.</p>
  <p>We use the build number as part of our software version number that feeds into our quality system, I'd rather fix the existing pipelines and keep our build number sequence rather than have to change the minor version on 24 projects to accommodate resetting the build number counter by just deleting and re-adding all the pipelines.</p>
  <p>How do I replace the other engineer's credentials with my own?</p>
  
Comments: CC BY-SA 4.0
Comments: 2024-08-26T17:18:21.403Z
Comments: https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/steps-checkout?view=azure-pipelines   -  We do have persistCredentials: true  but I don't know if we can re-generate credentials by changing this to false.
Comments: Denise Skidmore
Tags: <azure-pipelines><bitbucket><authentication>
Title: How to change Bitbucket User in Azure Pipeline?
UserDisplayName: Denise Skidmore
ThreadText: # How to change Bitbucket User in Azure Pipeline?
  
  (Asked by: username_0 on 2024-08-25)
  
  A previous engineer set up our Azure pipelines with Bitbucket repositories. He has left the company, his Bitbucket privileges were revoked, so the Azure pipelines can no longer reach Bitbucket.
  
  [Azure documentation](https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/bitbucket?view=azure-devops&tabs=yaml) says we should just be prompted for authentication when setting up a new pipeline to Bitbucket Cloud repository, (and that does work for me) but doesn't say how to update this connection on an existing pipeline.
  
  We use the build number as part of our software version number that feeds into our quality system, I'd rather fix the existing pipelines and keep our build number sequence rather than have to change the minor version on 24 projects to accommodate resetting the build number counter by just deleting and re-adding all the pipelines.
  
  How do I replace the other engineer's credentials with my own?
  
  **Tags:** azure-pipelines, bitbucket, authentication
  
  > **Comments:**
  > **username_0**: https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/steps-checkout?view=azure-pipelines   -  We do have persistCredentials: true  but I don't know if we can re-generate credentials by changing this to false.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2024-09-05. Score: 1 | Accepted answer
  
  If you have admin access to the project, you can also update the existing connection and all the pipelines using that connection will be updated at the same time.
  
  Use a Private/Incognito browser tab if trying to set up a service account connection.
  
  1. Go to the project page
  2. Project Settings
  3. Service Connections
  4. Select a connection
  5. Edit
  6. Change - This will auto log in with existing Bitbucket connection or prompt for Bitbucket credentials.
  7. Save & Close Edit
  
  
  ---
  
  ### Answer by username_0 on 2024-08-27. Score: 1
  
  I found it in the GUI.
  
  1. Pipelines -> Select Pipeline -> Edit -> … menu -> Triggers –> YAML tab -> Get sources -> Authorized using connection {old connection} Change
  2. Re-select the repository
  3. Save
  
  It's advisable to use a service account for the new connection that won't go away when the company has turnover.
  
  
  ---
  
  