> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/a/azure-devops-users.md).

# Azure DevOps Users

Azure DevOps Services is the cloud Azure DevOps product. OctoXLabs reads the users of an organization through the Graph API.

## Use cases

* Find Azure DevOps Users accounts that have no match in your directory.

```
Adapters = azure-devops-services-users AND NOT Adapters = active-directory
```

* Check what one Azure DevOps Users connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination         | Port | Protocol |
| ------------------- | ------------------- | ---- | -------- |
| OctoXLabs connector | vssps.dev.azure.com | 443  | HTTPS    |

### Required permissions

| Scope or role | Permission | Needed for |
| ------------- | ---------- | ---------- |
| Graph (Read)  | Read       | Users      |

The token owner must have at least **Basic Read** access to the Azure DevOps project and repository.

## Create credentials in Azure DevOps Users

{% stepper %}
{% step %}

### Sign in

Log in to your Azure DevOps account.
{% endstep %}

{% step %}

### Create a token

Go to **User Settings** > **Personal Access Tokens** and click **New Token**.
{% endstep %}

{% step %}

### Name it

Set a descriptive **Name** and an appropriate **Expiration** date.
{% endstep %}

{% step %}

### Select the organization

Select the required **Organization**.
{% endstep %}

{% step %}

### Set scopes

Under **Scopes** choose **Custom defined** and grant **Graph (Read)**.
{% endstep %}

{% step %}

### Copy the token

Click **Create** and copy the token.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                   | Required | Type    | Default | Description                                                                  |
| --------------------------- | -------- | ------- | ------- | ---------------------------------------------------------------------------- |
| Organization Name           | Yes      | String  | None    | Name of your organization, the last part of `https://dev.azure.com/<name>/`. |
| Personal Access Token (PAT) | Yes      | String  | None    | Token used for API requests.                                                 |
| Is Secure                   | No       | Boolean | True    | Listed in the form, but the code always uses `https://vssps.dev.azure.com`.  |
| Timeout                     | No       | Integer | 30      | Time in seconds to wait for API responses.                                   |

## Troubleshooting

| Error message                                                          | Cause                                                                  | Fix                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Status Code: `, followed by the URL, the method and the response body` | The API answered with a status other than the one the adapter expects. | Read the code and body. 401 or 403 usually points to wrong credentials or missing permissions. Check the address, port and Is Secure setting. |

## Change history

{% hint style="info" %}
Available starting from version 5.6.5.
{% endhint %}
