I have been trying to figure out method of fetching permissions on a particular Git Repository programmatically.
The TFS API reference given online doesn't detail any of the security API's. However, this is definitely done in TFS when you or view modify security from the web portal.
Tracking the web calls, I can see that calls being made to the following API
http://tfsserver/tfs/DefaultCollection/[TeamProject]/_api/_security/DisplayPermissions?
__v=5&tfid=[PROJ_GUID]&permissionSetId=[PERMMISSIONSET_GUID]
&permissionSetToken=repositories/[REPOSITORY_GUID].
I have inferred all the GUIDS passed to the above URL but couldn't understand where to get the GUID for fill the PermissionSetId parameter.
Looking at the web page, I can see that the value picked up from gitRepositoryPermissionSet
, but I can't find it out how to get this value.
Wondering if anyone can help me out with understanding this parameter.