Skip to content

Commit 08281fc

Browse files
committed
Assign user and group portal updates
1 parent aefad61 commit 08281fc

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

articles/active-directory/manage-apps/assign-user-or-group-access-portal.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Assign users and groups
2+
title: Manage users and groups assignment to an application
33
description: Learn how to assign and unassign users, and groups, for an app using Azure Active Directory for identity management.
44
services: active-directory
55
author: omondiatieno
@@ -16,7 +16,7 @@ zone_pivot_groups: enterprise-apps-all
1616
#customer intent: As an admin, I want to manage user assignment for an app in Azure Active Directory using PowerShell
1717
---
1818

19-
# Assign users and groups to an application
19+
# Manage users and groups assignment to an application
2020

2121
This article shows you how to assign users and groups to an enterprise application in Azure Active Directory (Azure AD) using PowerShell. When you assign a user to an application, the application appears in the user's [My Apps](https://myapps.microsoft.com/) portal for easy access. If the application exposes app roles, you can also assign a specific app role to the user.
2222

@@ -36,13 +36,16 @@ To assign users to an enterprise application, you need:
3636
- One of the following roles: Global Administrator, Cloud Application Administrator, Application Administrator, or owner of the service principal.
3737
- Azure Active Directory Premium P1 or P2 for group-based assignment. For more licensing requirements for the features discussed in this article, see the [Azure Active Directory pricing page](https://azure.microsoft.com/pricing/details/active-directory).
3838

39-
39+
## Assign users, and groups, to an application
40+
4041
:::zone pivot="portal"
4142

4243
To assign a user or group account to an enterprise application:
4344

44-
1. Sign in to the [Azure portal](https://portal.azure.com), then select **Enterprise applications**, and then search for and select the application to which you want to assign the user or group account.
45-
1. Browse to **Azure Active Directory** > **Users and groups**, and then select **Add user/group**.
45+
1. Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com) as at least a [Cloud Application Administrator](../roles/permissions-reference.md#cloud-application-administrator).
46+
1. Browse to **Identity** > **Applications** > **Enterprise applications** > **All applications**.
47+
1. Enter the name of the existing application in the search box, and then select the application from the search results.
48+
1. Select **Users and groups**, and then select **Add user/group**.
4649

4750
:::image type="content" source="media/add-application-portal-assign-users/assign-user.png" alt-text="Assign user account to an application in your Azure AD tenant.":::
4851

@@ -51,12 +54,18 @@ To assign a user or group account to an enterprise application:
5154
1. Select **Select**.
5255
1. On the **Add Assignment** pane, select **Assign** at the bottom of the pane.
5356

57+
## Unassign users, and groups, from an application
58+
59+
1. Follow the steps on the [Assign users, and groups, to an application](#assign-users-and-groups-to-an-application) section to navigate to the **Users and groups** pane.
60+
1. Search for and select the user or group that you want to unassign from the application.
61+
1. Select **Remove** to unassign the user or group from the application.
62+
5463
:::zone-end
5564

5665
:::zone pivot="aad-powershell"
5766

5867
1. Open an elevated Windows PowerShell command prompt.
59-
1. Run `Connect-AzureAD -Scopes "Application.Read.All", "Directory.Read.All", "Application.ReadWrite.All", "Directory.ReadWrite.All"` and sign in with a Global Administrator user account.
68+
1. Run `Connect-AzureAD` and sign as at least a [Cloud Application Administrator](../roles/permissions-reference.md#cloud-application-administrator).
6069
1. Use the following script to assign a user and role to an application:
6170

6271
```powershell
@@ -118,7 +127,7 @@ This example assigns the user Britta Simon to the Microsoft Workplace Analytics
118127
## Unassign users, and groups, from an application
119128
120129
1. Open an elevated Windows PowerShell command prompt.
121-
1. Run `Connect-AzureAD -Scopes "Application.ReadWrite.All", "Directory.ReadWrite.All", "AppRoleAssignment.ReadWrite.All"` and sign in with a Global Administrator user account. Use the following script to remove a user and role from an application.
130+
1. Run `Connect-AzureAD` and sign in with a Global Administrator user account. Use the following script to remove a user and role from an application.
122131
123132
```powershell
124133
# Store the proper parameters
@@ -165,7 +174,7 @@ $assignments | ForEach-Object {
165174
:::zone pivot="ms-powershell"
166175

167176
1. Open an elevated Windows PowerShell command prompt.
168-
1. Run `Connect-MgGraph -Scopes "Application.ReadWrite.All", "Directory.ReadWrite.All", "AppRoleAssignment.ReadWrite.All"` and sign in with a Global Administrator user account.
177+
1. Run `Connect-MgGraph -Scopes "Application.ReadWrite.All", "Directory.ReadWrite.All", "AppRoleAssignment.ReadWrite.All"` and sign as at least a [Cloud Application Administrator](../roles/permissions-reference.md#cloud-application-administrator).
169178
1. Use the following script to assign a user and role to an application:
170179

171180
```powershell
@@ -229,7 +238,7 @@ $assignments | ForEach-Object {
229238

230239
:::zone pivot="ms-graph"
231240

232-
1. To assign users and groups to an application, sign in to [Graph Explorer](https://developer.microsoft.com/graph/graph-explorer) with one of the roles listed in the prerequisite section.
241+
1. To assign users and groups to an application, sign in to [Graph Explorer](https://developer.microsoft.com/graph/graph-explorer as at least a [Cloud Application Administrator](../roles/permissions-reference.md#cloud-application-administrator).
233242

234243
You'll need to consent to the following permissions:
235244

@@ -269,6 +278,7 @@ $assignments | ForEach-Object {
269278
In the example, both the resource-servicePrincipal-id and resourceId represent the enterprise application.
270279
271280
## Unassign users, and groups, from an application
281+
272282
To unassign user and groups from the application, run the following query.
273283
274284
1. Get the enterprise application. Filter by displayName.

0 commit comments

Comments
 (0)