JakeUT
JakeUT

Reputation: 537

Azure DevOps acesDictionary for repoV2

I have accidentally changed permissions on repoV2 when I was trying to change the permissions on a specific Repo via REST. Instead of targeting repoV2/ProjectGuid, I ended up updating repoV2. Can someone tell me how I can reset it? I dont have the previous values.

URL: https://dev.azure.com/*yourcompany*/_apis/accesscontrollists/2e9eb7ed-3c0a-47d4-87c1-0ffdd275fd87?api-version=6.0-preview.1

If you search for "token":"repoV2", there is an acesDictionary object associated with it. How can I get it reset to what it previously was?

Thanks in advance, Jake.

Upvotes: 0

Views: 341

Answers (2)

JakeUT
JakeUT

Reputation: 537

I added the necessary group SID Identifiers to the acesDictionary. Also removed the ones that were added incorrectly. Then saving it back seems to have taken it to an expected state. The 3 group permissions added back were based on what I saw on repos that had disabled inheritance....using these as a model, I determined that the 3 groups above were what needed to be at the repoV2 level. If there any others that need to be added, please let me know.

Upvotes: 1

Mr Qian
Mr Qian

Reputation: 23818

There is no such document about that.

I think you could just use Postman to writeback the value into the api:

{
  "count": "xxx",
  "value": [{ "inheritPermissions":true,
              "token":"repoV2",
              "acesDictionary":{"[email protected]":{"descriptor":"Microsoft.IdentityModel.Claims.ClaimsIdentity;[email protected]","allow":xxx,"deny":0}}

        }]
}

You can change the the value of allow and deny to change the permission.

Upvotes: 0

Related Questions