Public
Documentation Settings

manb-msft/Azure DevOps REST Security APIs with Examples

Examples to use Azure DevOps REST API for various security operations.

Azure DevOps

Expand the list on the left to directly get to the operations.

Index

Common Calls

Commonly used calls, to list users/groups etc

AUTHORIZATIONBasic Auth
Username

<username>

Password

{{OPAT}}

GETList all projects

https://dev.azure.com/{{organization}}/_apis/projects?api-version=5.1

API to list all projects.

AUTHORIZATIONBasic Auth
Username

<username>

Password

{{PAT}}

PARAMS
api-version

5.1

GETGet Descriptors

https://vssps.dev.azure.com/{{organization}}/_apis/graph/descriptors/{{storageKey}}?api-version=5.1-preview.1

{{storagekey}} is the ADO project ID

AUTHORIZATIONBasic Auth
Username

<username>

Password

{{PAT}}

PARAMS
api-version

5.1-preview.1

GETGet all teams under a Project (optional)

https://dev.azure.com/{{organization}}/_apis/projects/{{projectID}}/teams?api-version=5.1
AUTHORIZATIONBasic Auth
Username

<username>

Password

{{PAT}}

PARAMS
api-version

5.1

Loading