For the complete documentation index, see llms.txt. This page is also available as Markdown.

Step-by-step deployment guide

The Azure Devops connector imports users, groups, projects, repositories and user specific permissions into Elimity Insights. Read up on the specifics and how to configure this connector below!

1. Which data is imported from Azure Devops?

The following Azure Devops metadata is imported:

  • Users

  • Organization Groups

  • Project Groups

  • Projects

  • User Specific Project Permissions

  • Repositories

  • User Specific Repository Permissions

The diagram below gives more information on the relationships between them:

User attributes

Each user entity has the following attributes:

Attribute
Description

domain

Azure AD tenant / domain the user belongs to.

mail_address

User's email address.

origin

Identity source (e.g. aad, msa).

principal_name

User's UPN / login name.

url

Direct link to the user in the Azure DevOps Graph API.

account_license_type

Azure DevOps license tier assigned to the user. Possible values: express (Basic), stakeholder, advanced (Basic + Test Plans), professional, earlyAdopter, none.

Other entities and their attributes can be inspected in the azure-devops-data-model.json below.

2. Creating a dedicated app registration in Entra ID

As usual we recommend creating a dedicated account for this connector. Follow the steps below to set up a new app registration in Entra ID:

  1. In Azure, open the overview of your tenant's app registrations by typing 'app registrations' in the global search bar and clicking the 'App registrations' service.

  2. Click the 'New registration' button.

  3. Choose a name for this registration (e.g. elimity-insights-azure-devops).

  4. Leave the default for 'Supported account types' and 'Redirect URI' and click 'Register'.

Note down these values:

  • Application (client) ID

  • Directory (tenant) ID

We'll need these later to configure the connection in Elimity.

3. Generating credentials for the new app registration

The Azure Devops connector authenticates as the app registration using a client secret. Click "Certificates & secrets" in the menu on the left and add a new client secret. Immediately note down the value of your new secret.

4. Retrieve your Azure Devops organization name

Get your Azure Devops organization name. You can find this as part of the URL of your Azure Devops tenant:

Example:

  • Azure DevOps URL: https://dev.azure.com/your-organization

  • In this case 'organization' would be your-organization

5. Add the service principal to Azure Devops

Creating the app registration in Entra ID also creates a service principal. That service principal must be added to Azure DevOps as a user.

  1. In Azure DevOps, go to "Organization Settings" → "Users" and click "Add Users"

  2. Search for the service principal by the name of App Registration and add it.

  3. Set the Access level to Basic.

  4. Add the service principal to the Project Collection Valid Users group under "Organization Settings" → "Permissions" to ensure it can read all projects with its metadata.

To import the account_license_type attribute (user license tier), the service principal also needs the Member Entitlement Management (read) scope.

Without this scope, the sync still completes successfully — license information will simply be absent from users, and the import logs will show a clear ALERT explaining the cause. You can skip this step and grant it later if you don't need license data right away.

To grant the scope:

  1. In the Azure portal, open the App registration you created in step 2.

  2. In the left menu, click API permissions → Add a permission.

  3. Switch to the APIs my organization uses tab and search for Azure DevOps. Select it.

  4. Choose Delegated permissions (or Application permissions if your tenant uses that pattern), then check vso.memberentitlementmanagement (read user entitlements).

  5. Click Add permissions.

  6. Back on the API permissions page, click Grant admin consent for [your tenant]. A tenant admin may need to do this if you don't have permission yourself.

  7. Confirm the scope shows a green ✓ "Granted for [tenant]" status.

The next Azure DevOps sync in Elimity will then populate account_license_type on all licensed users.

6. Configure the source in Elimity Insights

  • Go to 'Sources' in the left navigation bar and click 'Add Source'.

  • Search for 'Custom' and click 'Set Up'

  • Click 'Set Up' again and fill in the name of the Source (e.g. Azure Devops)

  • Select 'Upload export file'

  • Click 'Continue' and upload the following file:

  • Now to the 'Config' tab and click 'Edit':

  • Set 'Enable automatic imports via custom gateway' to true and fill in the Gateway URL: https://azure-devops-gateway-1027270379075.europe-west1.run.app

  • Set 'SDK version' to 2.

  • Now we need to add some configuration values. Click 'Add configuration value' and add the following configuration values:

Key
Type
Where to find it

clientId

Text

See step 2

clientSecret

Password

See step 3

tenantId

Text

See step 2

organization

Text

See step 4

requestTimeoutSeconds

Text

The longest one request to the gateway may take, in seconds. At least 120; we recommend 600. See 6.1

  • The Azure Devops connector also supports 2 configuration values which allow to exclude or include certain projects. If both configuration values have been set, includedProjects takes precedence:

Key
Type
Description

includedProjects

JSON

List of strings: ["Project1", "Project2"]

The integration will only import projects listed in this list.

excludedProjects

JSON

List of strings: ["ProjectX", "ProjectY"]

The integration will exclude mentioned projects during import.

  • Optionally, the import can run in several chains side by side (see 6.2):

Key
Type
Description

parallel

Text

How many chains the import runs as: false (default) is one, true is eight, or a number.

Now click 'Save and run'! You can monitor the progress in the 'Logs' tab. Also the 'Imports' tab gives more information if anything went wrong.

6.1 Request timeout

The gateway imports the organization in many requests: the first one reads the users, groups, projects and repositories, the next ones read the permissions of the projects and repositories, several at a time. requestTimeoutSeconds is a hard limit on every one of those requests: when it is reached, what finished is imported and the rest is handed on to the next request.

Set it below the request limits of the platform the gateway runs on, see How imports are split.

We recommend 600 rather than the minimum of 120. Azure DevOps limits how much one identity may use (200 TSTUs in a sliding five minutes) and delays its requests beyond that. A full import of a large organization reaches that limit within minutes, and from then on a single project or repository can take several minutes. With 600 every request keeps making progress.

6.2 Parallel imports

With parallel, the projects and repositories are dealt over that many chains, and Elimity Insights works on all of them at the same time. This finishes the import sooner when the platform starts extra gateway instances for them, but Azure DevOps' rate limit stays the same: once it is reached, more chains do not make the import faster. Start with false, and try true (eight chains) if the import takes too long.

See How imports are split for how chains, parts and the request timeout work together.

7. Troubleshooting

Invalid configuration: requestTimeoutSeconds is required

The requestTimeoutSeconds configuration value is missing. Add it (type Text, for example 600), see step 6.

No project or repository finished within the request timeout of ... s

Not a single project or repository could finish within requestTimeoutSeconds, usually because Azure DevOps is throttling the service principal. Raise requestTimeoutSeconds, keeping it within the request limits of the platform the gateway runs on, or lower parallel.

An email from Azure DevOps about rate limiting

Azure DevOps emails the Project Collection Administrators when it delays the requests of an identity. During a full import of a large organization this is expected: the import gets slower, but completes. The gateway's container log summarizes it in Azure DevOps rate limiting: ... lines. A lower parallel makes it less likely.

account_license_type is missing for all users

The import logs will show an ALERT like:

Failed to fetch user entitlements (continuing without account_license_type): 401 Unauthorized. Check that the service principal has the vso.memberentitlementmanagement scope.

Fix: grant the vso.memberentitlementmanagement (read) scope to the service principal in Azure (see step 5.1). On the next sync, the attribute will be populated.

account_license_type is missing for some users

This is expected because users without an assigned Azure DevOps license (deactivated accounts, guests, service accounts) don't appear in the entitlement API, so the attribute is simply absent for them. No action needed.