使用VSTS Rest API设置git repo权限 [英] Use VSTS Rest API to set git repo permissions
问题描述
有没有一种方法可以使用VSTS rest API在git repo上设置权限?
Is there a way using the VSTS rest API to set permissions on a git repo?
我有一个可创建存储库的脚本,我想扩展它以设置一些默认权限(给项目集合构建服务提供权限).
I've got a script that creates a repo, and I want to extend that to set some default permissions (give the project collection build service contribute permissions).
我已阅读 gui文档,并浏览了其他API文档,但是无法看到我可以通过API设置存储库权限.有可能吗?
I've read the gui docs and looked through the Rest API docs but can't see that I can set permissions on a repo through the API. Is it possible?
推荐答案
目前,REST API不能设置版本控制权限(包括git repo).
For now, REST API can not set version control permissions (including git repo).
I posted an user voice Set version control permissions by REST API for this feature, you can vote and follow up.
这篇关于使用VSTS Rest API设置git repo权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!