john
john

Reputation: 187

Adding an AAD group to Azure DevOps using the rest api

I am attempting to do a put on

https://team.vssps.visualstudio.com/_apis/Graph/Memberships/{aadgp.GroupDescriptor}/vssgp.{GroupDescriptor}

I can come up with the ADO group starting with vssgp. but I have been unable to come up with the AAD descriptor.

Calling AAD graph with

https://graph.microsoft.com/v1.0/groups?$filter=displayName eq 'groupName'

doesnt appear to provide me anything that looks like that and calling

https://team.visualstudio.com/_apis/IdentityPicker/Identities?api-version=6.0-preview

with body

{
"query": "groupName",
"identityTypes": ["group"],
"operationScopes": ["ims", "source"]
}

doesnt give me anything that starts with aadgp.

I am running out of ideas and was hoping one of you may have done this already. I am unable to get all of the groups that have access to the org or team project as it will likely be a new group being added.

tia

Upvotes: 1

Views: 1326

Answers (1)

john
john

Reputation: 187

You have to make a bunch of calls.

Upvotes: 2

Related Questions