| title | Export a list of users and their access levels |
|---|---|
| titleSuffix | Azure DevOps |
| description | Determine the access level-stakeholder, basic, advanced, or Visual Studio Enterprise-granted to user accounts. |
| ms.subservice | azure-devops-security |
| ms.assetid | |
| ms.topic | how-to |
| ms.reviewer | |
| ms.author | chcomley |
| author | chcomley |
| monikerRange | <= azure-devops |
| ms.date | 03/04/2024 |
[!INCLUDE version-lt-eq-azure-devops]
::: moniker range="azure-devops" You can get a list of users and groups that have access to your organization in Azure DevOps by exporting users. The downloaded list also indicates access levels. ::: moniker-end
::: moniker range=">= azure-devops-2019 < azure-devops" You can get a list of users and groups that have access to your Azure DevOps Server instance by exporting the audit log. The audit log also indicates access levels. ::: moniker-end
::: moniker range="azure-devops"
[!INCLUDE prerequisites-pca-only]
::: moniker-end
::: moniker range="< azure-devops"
[!INCLUDE prerequisites-project-administrator-only]
::: moniker-end
::: moniker range="azure-devops"
From your web portal or the Azure DevOps CLI command, get a list of the users in your organization and view their access level information.
::: moniker-end
::: moniker range="< azure-devops"
From your web portal, get a list of the users in your organization and view their access level information.
::: moniker-end
::: moniker range="azure-devops"
-
Select the :::image type="icon" source="../../media/icons/project-icon.png" border="false"::: Azure DevOps logo to open Projects. Then choose Organization settings.
-
Select Users > Export users.
::: moniker-end
::: moniker range=">= azure-devops-2019 < azure-devops"
You can get a list of users and groups that accessed your instance by exporting the audit log. The audit log also indicates access levels.
-
From the web portal home page for a project, choose the :::image type="icon" source="../../media/icons/project-icon.png" border="false"::: Azure DevOps logo, (1) the project collection, and (2) Access levels.
[!NOTE]
If you're not a member of the Team Foundation Server Administrators group, the Access levels page won't appear. -
Choose Export audit log.
-
The user log file saves as a .csv file to your Download folder.
To determine the access level assigned to each user or group, open the file in Excel.
::: moniker-end
::: moniker range="azure-devops"
Add a user | List users | Remove a user | Update a user | Show users
You can list the users in an organization with the az devops user list command. This action doesn't apply to users added via Microsoft Entra groups, as certain commands or features might not directly apply to users added via Microsoft Entra. When you export the list, you might notice that group users get indicated with an "assignmentSource" of "groupRule." This assignment signifies that their access gets determined by the group membership rules, rather than individual settings. To get started, see Azure DevOps CLI.
az devops user list [--org] [--skip] [--top]
- org: Azure DevOps organization URL. Configure the default organization using
az devops configure -d organization=ORG_URL. Required if not configured as default or picked up usinggit config. For example,--org https://dev.azure.com/MyOrganizationName/. - skip: Optional. Number of users to skip.
- top: Optional. Maximum number of users to return. The maximum value is 10000; the default value is 100.
The following command returns five users in your organization without skipping any and shows the result in table format.
az devops user list --skip 0 --top 5 --output table
ID Display Name Email License Type Access Level Status
------------------------------------ ---------------------- ----------------------------- -------------- -------------- --------
3b5f0c34-4aec-4bf4-8708-1d36f0dbc468 Christie Church fabrikamfiber1@contoso.com stakeholder Stakeholder active
8c8c7d32-6b1b-47f4-b2e9-30b477b5ab3d Chuck Reinhart fabrikamfiber3@contoso.com stakeholder Stakeholder active
3b5f0c34-4aec-4bf4-8708-1d36f0dbc468 contoso@contoso.com contoso@contoso.com stakeholder Stakeholder active
f14a4f19-9910-6116-9836-cccd6dd1b7b7 contoso2@contoso.com contoso2@contoso.com express Basic active
74be024c-ebf5-4993-81eb-81ae1551e45f Helena Petersen fabrikamfiber8@contoso.com stakeholder Stakeholder active
::: moniker-end
[!INCLUDE temp]
::: moniker range="azure-devops"
::: moniker-end
::: moniker range="< azure-devops"
::: moniker-end



