Skip to content

Commit f5a9818

Browse files
authored
Merge pull request #103914 from mr-oliva/fix-script-of-manage-application-permissions
remove scops option from Connect-AzureAD cmd
2 parents 8cb6579 + 300b06a commit f5a9818

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Each option generates PowerShell scripts that enable you to control user access
5858
Use the following Azure AD PowerShell script to revoke all permissions granted to an application.
5959

6060
```powershell
61-
Connect-AzureAD -Scopes "Application.ReadWrite.All", "Directory.ReadWrite.All", "DelegatedPermissionGrant.ReadWrite.All" "AppRoleAssignment.ReadWrite.All",
61+
Connect-AzureAD
6262
6363
# Get Service Principal using objectId
6464
$sp = Get-AzureADServicePrincipal -ObjectId "<ServicePrincipal objectID>"
@@ -85,7 +85,7 @@ $spApplicationPermissions | ForEach-Object {
8585
Remove appRoleAssignments for users or groups to the application using the following scripts.
8686

8787
```powershell
88-
Connect-AzureAD -Scopes "Application.ReadWrite.All", "Directory.ReadWrite.All", "AppRoleAssignment.ReadWrite.All"
88+
Connect-AzureAD
8989
9090
# Get Service Principal using objectId
9191
$sp = Get-AzureADServicePrincipal -ObjectId "<ServicePrincipal objectID>"

0 commit comments

Comments
 (0)