I'm trying to deny the Edit Policies permission from a subject for the develop branch. I was under the impression this command would work:
$ az devops security permission update --allow-bit 2048 --subject [email protected] --namespace-id ***** --token repoV2/<project id>/<git repo id>/refs^heads^develop/
Despite the response
[
{
"acesDictionary": {
"Microsoft.IdentityModel.Claims.ClaimsIdentity;****\\[email protected]": {
"allow": 2048,
"deny": 0,
"descriptor": "Microsoft.IdentityModel.Claims.ClaimsIdentity;****\\[email protected]",
"extendedInfo": {
"effectiveAllow": 20342
},
"resolvedPermissions": [
{
"bit": 2048,
"displayName": "Edit policies",
"effectivePermission": "Allow",
"name": "EditPolicies"
}
]
}
},
"includeExtendedInfo": true,
"inheritPermissions": true,
"token": "repoV2/***/***/refs^heads^develop"
}
]
The permission remains the same.
I think the token- and namespace id's are correct because the command works when using the token repoV2/***/***/.

refs/heads/64006500760065006c006f007000/. You need to use 00 to connect each alphabet. - Kevin Lu-MSFT