0
votes

I am using a service account (user account), and the service account has read and write access to the projects under the organization. I have generated a PAT using this service account and using it in the API which calls the DevOps Rest API.

I have set read-only rules to a couple of fields in DevOps, I am bypassing the rule while calling the DevOps API (bypass:true) but it throws this error "TF401322: You don't have bypass rules permission. Please contact collection admin".

My question is : how do I set ByPass rules on work items to "Allow" for this service account ?

1

1 Answers

0
votes

The simple way: add your service account to Project Administrators :). You can create separate group, add your service account to it and Allow Bypass for this group. Here is permission:

enter image description here

Additional links:

  1. "Bypass rules on work item updates" is not working as expected
  2. Azure DevOps: create a comment on behalf of another user