Skip to content

Commit 18d852e

Browse files
committed
Add information on least privilege role
1 parent 08281fc commit 18d852e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ To assign a user or group account to an enterprise application:
6565
:::zone pivot="aad-powershell"
6666

6767
1. Open an elevated Windows PowerShell command prompt.
68-
1. Run `Connect-AzureAD` and sign as at least a [Cloud Application Administrator](../roles/permissions-reference.md#cloud-application-administrator).
68+
1. Run `Connect-AzureAD` and sign in as at least a [Cloud Application Administrator](../roles/permissions-reference.md#cloud-application-administrator).
6969
1. Use the following script to assign a user and role to an application:
7070

7171
```powershell
@@ -127,7 +127,8 @@ This example assigns the user Britta Simon to the Microsoft Workplace Analytics
127127
## Unassign users, and groups, from an application
128128
129129
1. Open an elevated Windows PowerShell command prompt.
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.
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.
131132
132133
```powershell
133134
# Store the proper parameters
@@ -174,7 +175,7 @@ $assignments | ForEach-Object {
174175
:::zone pivot="ms-powershell"
175176

176177
1. Open an elevated Windows PowerShell command prompt.
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).
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).
178179
1. Use the following script to assign a user and role to an application:
179180

180181
```powershell
@@ -203,7 +204,7 @@ New-MgUserAppRoleAssignment -UserId $userId -BodyParameter $params |
203204
## Unassign users, and groups, from an application
204205

205206
1. Open an elevated Windows PowerShell command prompt.
206-
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.
207208
```powershell
208209
# Get the user and the service principal
209210
@@ -238,7 +239,7 @@ $assignments | ForEach-Object {
238239

239240
:::zone pivot="ms-graph"
240241

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).
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).
242243

243244
You'll need to consent to the following permissions:
244245

0 commit comments

Comments
 (0)