Open ghost opened 5 years ago
Late to the party, it's probably already solved, but maybe this helps others: You never set the $token variable. It should be set like this:
$token = "`$PROJECT:vstfs:///Classification/TeamProject/$($projectId)"
Furthermore, the accessControlEntries
property is an array, so it should be enclosed in @()
instead of @{}
I am trying to set permissions of Azure DevOps project settings but having difficult time figuring out how to make it work.
I am getting the following error message. Invoke-RestMethod : {"$id":"1","innerException":null,"message":"TF400898: An Internal Error Occurred. Activity Id: f33cb608-a1fb-480f-a1f1-9d0db1f5fa7c.","typeName":"Newtonsoft.Json.JsonSerializationException, Newtonsoft.Json","typeKey":"JsonSerializationException","errorCode":0,"eventId":0} At line:4 char:1