Skip to content

Commit 2dee6f7

Browse files
Merge pull request #249965 from omondiatieno/assign-user
Assign user and group portal updates
2 parents 234c87c + 18d852e commit 2dee6f7

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

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

Lines changed: 21 additions & 10 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 in 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,8 @@ 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 as at least a [Cloud Application Administrator](../roles/permissions-reference.md#cloud-application-administrator).
131+
1. Use the following script to remove a user and role from an application.
122132
123133
```powershell
124134
# Store the proper parameters
@@ -165,7 +175,7 @@ $assignments | ForEach-Object {
165175
:::zone pivot="ms-powershell"
166176

167177
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.
178+
1. Run `Connect-MgGraph -Scopes "Application.ReadWrite.All", "Directory.ReadWrite.All", "AppRoleAssignment.ReadWrite.All"` and sign in as at least a [Cloud Application Administrator](../roles/permissions-reference.md#cloud-application-administrator).
169179
1. Use the following script to assign a user and role to an application:
170180

171181
```powershell
@@ -194,7 +204,7 @@ New-MgUserAppRoleAssignment -UserId $userId -BodyParameter $params |
194204
## Unassign users, and groups, from an application
195205

196206
1. Open an elevated Windows PowerShell command prompt.
197-
1. Run `Connect-MgGraph -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.
207+
1. Run `Connect-MgGraph -Scopes "Application.ReadWrite.All", "Directory.ReadWrite.All", "AppRoleAssignment.ReadWrite.All"` and sign in as at least a [Cloud Application Administrator](../roles/permissions-reference.md#cloud-application-administrator). Use the following script to remove a user and role from an application.
198208
```powershell
199209
# Get the user and the service principal
200210
@@ -229,7 +239,7 @@ $assignments | ForEach-Object {
229239

230240
:::zone pivot="ms-graph"
231241

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.
242+
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).
233243

234244
You'll need to consent to the following permissions:
235245

@@ -269,6 +279,7 @@ $assignments | ForEach-Object {
269279
In the example, both the resource-servicePrincipal-id and resourceId represent the enterprise application.
270280
271281
## Unassign users, and groups, from an application
282+
272283
To unassign user and groups from the application, run the following query.
273284
274285
1. Get the enterprise application. Filter by displayName.

0 commit comments

Comments
 (0)