且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Need Rest API使用PowerShell从Azure Devops获取权限详细信息

更新时间:2022-12-07 11:58:30

需要Rest API才能使用PowerShell从Azure Devops获取权限详细信息

Need Rest API to get the permission details from Azure Devops using PowerShell

目前,恐怕还没有这样的Rest API来获取每个用户/组的git repo权限.

For now, I am afraid there is no such Rest API to get git repo permissions for each User/Group.

您可以检查类似线程一些细节.

注意:使用语音"站点当前未激活.您可以向我们的主要论坛提交一个新的产品建议.感谢您帮助我们构建更好的Azure DevOps:

Note: The use voice site is not currently active. You could submit a new one to our main forum for product suggestions. Thank you for helping us build a better Azure DevOps:

https://developercommunity.visualstudio.com/content/idea/post.html?space=21

作为测试,我通过在Chrome浏览器中按F12进行跟踪,然后选择Network:

As test, I track it by press F12 in Chrome browser then select Network:

例如我可以在下面的示例中使用下面的REST API来获取我的团队MyTestProject的组project collection build service accounts权限详细信息:

e.g. I could use below REST API to get group project collection build service accounts permission details for my team MyTestProject in below sample:

https://dev.azure.com/<OrganizationName>/f0a50df8-5a11-41c3-8d7e-22180f923c80/_api/_security/DisplayPermissions?__v=5&tfid=cb4ef03a-148d-49fc-9775-342fc3923737&permissionSetId=a39371cf-0841-4c16-bbd3-276e341bc052&permissionSetToken=%24%2FMyTestProject

但是我无法调试此API以便在Azure DevOps的存储库中列出每个用户/组的访问权限.

But I could not debug this API to list the access permission for each User/Group under the reposities from Azure DevOps.

希望这会有所帮助.