Skip to content

Commit 98560bf

Browse files
authored
Update manage-application-permissions.md
Typo on line 106 Connect-MgGraph -Scopes "Application.ReadWrite.All", "Directory.ReadWrite.All", "DelegatedPermissionGrant.ReadWrite.All" "AppRoleAssignment.ReadWrite.All" -> Connect-MgGraph -Scopes "Application.ReadWrite.All", "Directory.ReadWrite.All", "DelegatedPermissionGrant.ReadWrite.All", "AppRoleAssignment.ReadWrite.All" Incorrect command on line 122 $spApplicationPermissions = Get-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $Sp.Id -All | Where-Object { $_.PrincipalType -eq "ServicePrincipal" } -> $spApplicationPermissions = Get-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $Sp.Id -All | Where-Object { $_.PrincipalType -eq "ServicePrincipal" }
1 parent 17b5e64 commit 98560bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/active-directory/manage-apps/manage-application-permissions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ $assignments | ForEach-Object {
103103
Using the following Microsoft Graph PowerShell script revokes all permissions granted to an application.
104104

105105
```powershell
106-
Connect-MgGraph -Scopes "Application.ReadWrite.All", "Directory.ReadWrite.All", "DelegatedPermissionGrant.ReadWrite.All" "AppRoleAssignment.ReadWrite.All"
106+
Connect-MgGraph -Scopes "Application.ReadWrite.All", "Directory.ReadWrite.All", "DelegatedPermissionGrant.ReadWrite.All", "AppRoleAssignment.ReadWrite.All"
107107
108108
# Get Service Principal using objectId
109109
$sp = Get-MgServicePrincipal -ServicePrincipalID "$ServicePrincipalID"
@@ -119,7 +119,7 @@ $spOauth2PermissionsGrants |ForEach-Object {
119119
}
120120
121121
# Get all application permissions for the service principal
122-
$spApplicationPermissions = Get-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $Sp.Id -All | Where-Object { $_.PrincipalType -eq "ServicePrincipal" }
122+
$spApplicationPermissions = Get-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $Sp.Id -All | Where-Object { $_.PrincipalType -eq "ServicePrincipal" }
123123
124124
# Remove all application permissions
125125
$spApplicationPermissions | ForEach-Object {
@@ -232,4 +232,4 @@ Run the following queries to remove appRoleAssignments of users or groups to the
232232
## Next steps
233233
234234
- [Configure user consent setting](configure-user-consent.md)
235-
- [Configure admin consent workflow](configure-admin-consent-workflow.md)
235+
- [Configure admin consent workflow](configure-admin-consent-workflow.md)

0 commit comments

Comments
 (0)