M365 Curated SOP / Microsoft 365 and identity
Check whether users can consent to apps, including AI tools
Find out whether ordinary users in a client's tenant can give third-party apps access to their mail, files and calendar without an admin.
Written and maintained by MSP Stockroom. Nobody else edits it.
On this page
Before you run anything: read every command first and understand what it does. Replace example names, domains and addresses with your own. Try it on a test device or tenant before a client's. Keep client names, passwords and keys out of tickets and chat.
Purpose
Find out whether ordinary users in a client's tenant can give third-party apps access to their mail, files and calendar without an admin. Many AI note-takers, writing assistants and browser add-ons ask for exactly this. When users can consent freely, company data can reach an AI vendor nobody approved. Run it before an AI rollout and at each quarterly review. Read-only: nothing in this SOP changes the tenant.
Scope and prerequisites
- Run by the client's assigned engineer.
- Needs an account that can read policies, such as Global Reader.
- The Microsoft Graph PowerShell SDK installed from the PowerShell Gallery.
- Pairs with the SOP "Review app consents, including AI tools", which lists the grants that already exist.
- Store the results in your documentation platform, never in this library.
Steps
- Sign in with a read-only scope:
# Read-only scope. You will be asked to sign in to the client's tenant. Connect-MgGraph -Scopes "Policy.Read.All" - Read which consent policy applies to users:
$policy = Get-MgPolicyAuthorizationPolicy $policy.DefaultUserRolePermissions.PermissionGrantPoliciesAssignedRead the result. Look only at entries that start with ManagePermissionGrantsForSelf:
- ManagePermissionGrantsForSelf.microsoft-user-default-legacy: users can consent to any app for any permission that doesn't need an admin. This is the riskiest setting. Record it as a finding.
- ManagePermissionGrantsForSelf.microsoft-user-default-low: users can consent only to apps from verified publishers, and only for low-impact permissions.
- ManagePermissionGrantsForSelf.microsoft-user-default-recommended: Microsoft manages which consents users can give.
- No ManagePermissionGrantsForSelf entry: user consent is turned off, and every app needs an admin.
- Entries that start with ManagePermissionGrantsForOwnedResource are about group and team owners. Record them separately.
- Check whether users can consent to apps that Microsoft flags as risky. The safe value is False or blank:
$policy.AllowUserConsentForRiskyApps - Check whether users can ask an admin to approve an app instead. A blocked user with no way to ask is more likely to find a workaround:
Get-MgPolicyAdminConsentRequestPolicy | Select-Object IsEnabled, NotifyReviewers, RequestDurationInDays - Disconnect when finished:
Disconnect-MgGraph
Verify
The client knows which consent setting applies and has agreed it in writing. If users can consent to any app, the client has either accepted that risk or asked for a change.
Rollback
Nothing to roll back; this SOP only reads. Changing the consent setting is a separate change, made with the client's approval.
Notes
Changing the consent setting affects only future consents. Grants users already gave stay in place until someone removes them. The admin consent workflow is set in the Microsoft Entra admin center under Enterprise apps, Consent and permissions. See https://learn.microsoft.com/entra/identity/enterprise-apps/configure-user-consent for Microsoft's guidance.
Sources and notes
Curated SOP from the MSP Stockroom SOP library (curated/m365-identity/check-whether-users-can-consent-to-apps-including-ai-tools.md). Last reviewed December 1, 2026. Tested on: Not yet run; written for Microsoft Graph PowerShell SDK 2.x; PowerShell 7.4. Vendor screens and commands change; check the vendor documentation before you rely on a step. Found a mistake? See corrections.