Use VSTS Rest API to set git repo permissions

2020-04-18 09:12发布

问题:

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.