Share via

Azure Devops CLI Find aadgp descriptor

AdamHumphrey-9804 20 Reputation points
2021-06-22T08:26:03.7+00:00

I am creating script that will create new projects in Azure devops, a part of this script is to add AAD groups to Azure Devops Groups, for permission purposes.

Problem is i am experiencing, i am unable to search as a guest global admin for the group email address, the only way is to add it via the group descriptor aadgp.blablabla (Due to security requirements, we can not make the user account that will generate these new projects as local aad accounts (opposed to inviting them as guests). )

So my only avenue to completing this script is to add the groups via the descriptor instead!

Firstly i have already tested this, by manually adding from another acccount (directly connected to the directory) the group i wanted to test with, then looked up its descriptor (aadgp.....), then removed it and re added it via Azure devops cli!

I have two questsions,
1 - does the descriptor exist before you add the group to devops, or is this generated after it is added?

2 - And if the above is its available before adding, is there any way i can find that group descriptor using a guest account (aka an account not directly connected to the directory, and invited as a guest and not as "New User"

Obivously if the first questions answer is no its not generated untill the AAD group is added into azure devops, then i will have to go back to the drawing board!

Community Center | Not monitored
0 comments No comments

Answer accepted by question author

Leon Laude 86,201 Reputation points
2021-06-22T08:30:02.293+00:00

Hi anonymous user,

Please note that Azure DevOps is currently not supported in the Q&A forums, the supported products are listed over here https://learn.microsoft.com/en-us/answers/products.

You may ask the experts in the dedicated Azure DevOps forum over here:
https://developercommunity.visualstudio.com/report?space=21&entry=problem


If the reply was helpful please don't forget to upvote and/or accept as answer, thank you!

Best regards,
Leon

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.