Skip to content

Update configure-user-consent.md - needs work #1570

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions docs/identity/enterprise-apps/configure-user-consent.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ms.custom: enterprise-apps
zone_pivot_groups: enterprise-apps-minus-legacy-powershell


#customer intent: As an IT admin, I want to configure user consent settings for applications, so that I can control the level of access users have to my organization's data and reduce the risk of malicious applications.
#customer intent: As an IT admin, I want to configure user consent settings for applications, so that I can control the level of access users have to my organization's data and reduce the risk of malicious applications. I also want documentation written for users, not the developers.
---

# Configure how users consent to applications
Expand Down Expand Up @@ -69,9 +69,15 @@ Connect to Microsoft Graph PowerShell using the least-privilege permission neede
Connect-MgGraph -Scopes "Policy.ReadWrite.Authorization"
```

### List the current permission grant policies
```powershell
Get-MgPolicyPermissionGrantPolicy | fl
```
Will list your current permission grant policies. These policies determine what permissions can be granted to applications and under what circumstances. Each policy 'includes' certain conditions, but 'excludes' others. When a user tries to consent to an application, the system checks the permission grant policies to see if any of them apply to the user's request. For example, the low-risk policy would allow users to consent to those permissions configured as 'low risk' - it includes these low-risk policies (as a GUID). In another scenario, a user tries to consent in a context that matches the 'AdminOnly' policy - they are unable to consent.

### Disable user consent using Microsoft Graph PowerShell

To disable user consent, ensure that the consent policies (`PermissionGrantPoliciesAssigned`) include other current `ManagePermissionGrantsForOwnedResource.*` policies if any while updating the collection. This way, you can maintain your current configuration for user consent settings and other resource consent settings.
To disable user consent, you need to update the consent policies - without losing any configuration. *`PermissionGrantPoliciesAssigned`- include other current `ManagePermissionGrantsForOwnedResource.*` policies if any while updating the collection. This way, you can maintain your current configuration for user consent settings and other resource consent settings.*

```powershell
# only exclude user consent policy
Expand Down