问题描述
我正在寻找一个Rest API URL,它将为我提供Azure Devops中每个存储库中每个用户/组的详细访问列表.
I am looking for a Rest API url that will get me the detailed list of access for each user/group in each repositories from Azure Devops.
我有API URL,它将返回Azure Devops中每个项目的存储库,但是我的故事是关于在Rest API的帮助下定期验证每个用户/组对每个存储库的访问权限.
I have API URL that will return the repositories for each Project in Azure Devops, but my story is about validating the access for each user/group for each repositories on periodic basis with the help of Rest API.
需要Rest API,它将根据Azure DevOps的存储库返回每个用户/组的访问权限.
Need Rest API which will return the access permission for each User/Group under the reposities from Azure DevOps.
推荐答案
目前,恐怕还没有这样的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.
希望这会有所帮助.
这篇关于Need Rest API使用PowerShell从Azure Devops获取权限详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!