Use VSTS Rest API to set git repo permissions

梦想的初衷 提交于 2019-12-02 08:56:13

问题


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).

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?


回答1:


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.



来源:https://stackoverflow.com/questions/47411681/use-vsts-rest-api-to-set-git-repo-permissions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!