Skip to content

Latest commit

 

History

History
159 lines (97 loc) · 6.38 KB

File metadata and controls

159 lines (97 loc) · 6.38 KB
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

Export a list of users and their access levels

[!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

Prerequisites

::: moniker range="azure-devops"

[!INCLUDE prerequisites-pca-only]

::: moniker-end

::: moniker range="< azure-devops"

[!INCLUDE prerequisites-project-administrator-only]

::: moniker-end

Export a list of users

::: 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"

  1. Select the :::image type="icon" source="../../media/icons/project-icon.png" border="false"::: Azure DevOps logo to open Projects. Then choose Organization settings.

    [!div class="mx-imgBorder"]
    Screenshot of highlighted Organization settings button.

  2. Select Users > Export users.

    [!div class="mx-imgBorder"]
    Screenshot of Export users button.

::: 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.

  1. 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.

    [!div class="mx-imgBorder"]
    Screenshot of Open Access levels.

    [!NOTE]
    If you're not a member of the Team Foundation Server Administrators group, the Access levels page won't appear.

  2. Choose Export audit log.

    [!div class="mx-imgBorder"]
    Screenshot of Export audit log, Azure DevOps Server 2019 and 2020, Web portal,

  3. 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

List 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]

Parameters

  • 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 using git 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.

Example

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]


Related articles

::: moniker range="azure-devops"

::: moniker-end

::: moniker range="< azure-devops"

::: moniker-end