Reputation: 485
As stated in the title, I try to create or even list the Groups of the server.
Documentation explains with the example command to list all groups:
https://vssps.dev.azure.com/fabrikam/_apis/graph/groups?api-version=4.1-preview.1
I don't know how to get to this preview version, because Version 4.1 quotes a 404 error.
So it seems it isn't available in the latest official version? Has somebody got other experiences?
Regards.
Upvotes: 1
Views: 390
Reputation: 30382
The API you mentioned is for Azure DevOps only.
For on-premise TFS 2018 update3, you can use below REST API:
To list groups:
GET http://tfs2018u3:8080/tfs/DefaultCollection/_apis/Groups?api-version=4.1-preview.1
To create a group:
POST http://tfs2018u3:8080/tfs/DefaultCollection/_api/_identity/ManageGroup?api-version=4.1-preview.1
Content-Type: application/json
Request Body:
{"name":"Test1024","description":"test1023"}
Upvotes: 5