Skip to content

Latest commit

 

History

History
140 lines (91 loc) · 7.92 KB

File metadata and controls

140 lines (91 loc) · 7.92 KB
title Delete, remove users from team, project, organization
titleSuffix Azure DevOps
description Steps for how to delete or remove organization users from Azure DevOps and remove users from a team or project.
ms.subservice azure-devops-organizations
ms.topic how-to
ms.assetid d3a31878-a869-45a9-9bca-f46cc2682596
ms.custom copilot-scenario-highlight
ms.author chcomley
author chcomley
ms.date 03/03/2026
ai-usage ai-assisted
monikerRange <=azure-devops

Remove users from Azure DevOps

[!INCLUDE version-lt-eq-azure-devops]

If users no longer require access to a team, project, or organization, you can remove their access. Removing access ensures that only authorized users can view and interact with your organization's data and resources. This article provides step-by-step instructions on how to remove user access from a team, project, or organization in Azure DevOps. By following these guidelines, you can ensure that your organization's security and resource management practices remain robust and up-to-date.

Important

  • Removing a user from a team or project doesn’t remove them from the organization.
  • Work items assigned to the user aren't affected by removing their access.
  • For Microsoft Entra ID-backed organizations:
    • Removing a user from Microsoft Entra ID prevents assigning new artifacts (for example, work items or pull requests) to that user. However, the history of already assigned artifacts is preserved.
    • Removing a user from the organization doesn't remove their memberships in any Microsoft Entra groups. If the user is a member of an access-granting Microsoft Entra group, they still have access to Azure DevOps. To completely remove the user, ensure they aren't in any access-granting Microsoft Entra groups. For more information, see Manage access with Microsoft Entra groups.
  • For Managed Service Account (MSA)-backed organizations: Removing a user from your MSA-backed organization doesn't remove them from the tenant, and they can be re-added at any time.

[!INCLUDE ai-assistance-mcp-server-tip]

Prerequisites

[!INCLUDE prerequisites-pca-only]

Remove users from your organization

[!INCLUDE image-differences]

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

  1. Sign in to your organization: https://dev.azure.com/{yourorganization}.

  2. Select gear icon Organization settings.

    Screenshot showing highlighted Organization settings button.

  3. Select Users.

    Screenshot showing highlighted Users button within Organization settings.

  4. Select ... next to the user you want to remove. Then, choose Remove from organization. If this option isn't available, see the prerequisites.

    Screenshot showing removal of a user from your organization.

  5. Select Remove in the confirmation dialog.

  6. If you deleted paid users with Basic or higher features, reduce the users in Organization settings to avoid charges in your next Azure billing cycle.

To reduce or cancel users for the next month, make updates before the last day of the current month. Your bill reflects these changes in the following month, as paid users get billed monthly.

::: moniker-end

::: moniker range=" azure-devops"

Note

The Azure DevOps CLI does not support adding and removing service principals.

Add a user | List users | Remove a user | Update a user | Show users

Remove a user

You can remove a user from an organization by using the az devops user remove command. To get started, see Azure DevOps CLI.

az devops user remove --user
                      [--org]
                      [--yes]

Parameters

  • user: The email address or ID of the user.
  • org: Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up using git config. Example: --org https://dev.azure.com/MyOrganizationName/.
  • yes: Don't prompt for confirmation.

Example

The following command removes the user with the email address contoso@contoso.com from the contoso organization.

az devops user remove --user contoso@contoso.com --org https://dev.azure.com/contoso/ --yes

::: moniker-end

[!INCLUDE note-cli-not-supported]


Remove users from a team or project

To remove users from a project, remove them from the Teams groups they belong to or the Contributors group for the project. For more information, see Add users to a project or specific team. You can remove a user from the Members page of a team group or security group.

Screenshot showing removal of a user from a security group, new navigation.

Use AI to manage user access

If you have the Azure DevOps MCP Server configured, you can use AI assistants to review and manage user access in your organization using natural language prompts. The MCP Server provides your AI assistant with secure access to your Azure DevOps data, allowing you to list users, check access levels, and review team memberships without navigating through the web interface.

Example prompts for user management

Task Example prompt
Offboard a team member Remove <user-email> from all teams and projects in <organization-name> and show me what work items were assigned to them
Find orphaned assignments List all active work items, pull requests, and pending approvals assigned to <user-email> in <organization-name> before I remove them
Bulk clean up inactive users Show me all users in <organization-name> who haven't signed in for over 180 days and their current access levels
Pre-removal impact check Before removing <user-email> from <organization-name>, show their team memberships, owned pipelines, and any service connections they created
Reassign and remove Transfer all work items currently assigned to <user-email> in <project-name> to <new-user-email>, then remove them from the project
Audit removal history Show me the audit log of users removed from <organization-name> in the last 30 days

Tip

If you're using Visual Studio Code, agent mode is especially helpful for auditing user access and reviewing team memberships across projects.

  • To avoid using stale or cached data from previous queries, add to your prompt, Do not use previously fetched data.

Related content