i have an extension that install on azure devops. how can i get all user in my organization without register a client app with Azure DevOps => get token then call rest api ? Because i want other people can install my extension, and they doesn't want to do any step
Asked
Active
Viewed 277 times
1 Answers
2
You can use this api to get users in All Users page:
https://vsaex.dev.azure.com/{OrganizationName}/_apis/UserEntitlements?%24filter=&%24orderBy=name%20Ascending

LoLance
- 25,666
- 1
- 39
- 73
-
so, i will call a rest api after get the authenticate token right? at the link https://learn.microsoft.com/en-us/azure/devops/extend/develop/auth?view=azure-devops – Erics Nguyen Jun 30 '20 at 04:21
-
1Azure Devops service provides VSS.require... to [call a rest api](https://learn.microsoft.com/en-us/azure/devops/extend/develop/call-rest-api?view=azure-devops), however the rest api you need is not documented. So we can't use normal way to do that, you can try calling the rest api in [this way](https://stackoverflow.com/a/59195324/10910450). – LoLance Jun 30 '20 at 05:02