简体   繁体   中英

REST API Create Group TFS 2018 update 3

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.

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"}

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM