Join our Newsletter — 33% off our NHI Course
Home› Guides› Microsoft Defender for Cloud Apps Configuration Guide: App…
Guide SaaS & OAuth Integrations

Microsoft Defender for Cloud Apps Configuration Guide: App Governance, OAuth App Policies and Session Controls

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 20 November 2026 15 min read
On this page

Microsoft Defender for Cloud Apps is where a Microsoft security team governs the OAuth apps that hold standing access to SaaS data and controls what users can do inside live cloud app sessions. This guide walks through configuration in the order we suggest: admin roles first, then app governance and OAuth app policies, then session controls through Conditional Access app control, and finally alert handling and ongoing review. The emphasis is on OAuth apps, because each consented app is a non-human identity with its own permissions, and those permissions often outlive the people who granted them.

The page focuses on Defender for Cloud Apps settings. For the wider incident and hunting experience across Microsoft's security products, see our Microsoft Defender XDR guide, which this page does not repeat.

This is an independent guide from NHI Mgmt Group, based on Microsoft's public documentation as of November 2026. It is not sponsored or reviewed by Microsoft. Product features change, so confirm settings against Microsoft's current documentation.

Key takeaways

  • Microsoft describes four feature areas: core cloud access security broker (CASB) functions, SaaS Security Posture Management (SSPM), advanced threat protection as part of Microsoft's XDR, and app-to-app protection for OAuth-enabled apps.
  • App governance covers OAuth-enabled apps registered on Microsoft Entra ID, Google and Salesforce, and shows which permissions they hold and which users granted them.
  • App governance policies can use conditions such as registration age, certification, publisher verification, privilege level, data usage and consenting users. The only documented action is Disable app, which Microsoft says to use with caution.
  • Session policies need a Defender for Cloud Apps licence, a Microsoft Entra ID P1 licence and a Conditional Access policy that uses Conditional Access App Control. Microsoft advises starting that policy in Report-only mode and excluding break-glass accounts.
  • Use the least privileged admin role that does the job. Security Reader can create API access tokens, which is itself a non-human credential to govern.
  • Access to app governance data is controlled by Entra ID roles, not by the Defender for Cloud Apps role page, so review both.

What Defender for Cloud Apps covers

Microsoft describes Defender for Cloud Apps as a service that delivers protection for SaaS applications and helps you monitor and protect cloud app data. Its documentation groups capabilities into four areas:

  • Fundamental CASB functionality. Shadow IT discovery, visibility into cloud app usage, protection against app-based threats, and information protection and compliance assessments.
  • SaaS Security Posture Management. Surfaces misconfigurations and recommends actions for each connected app. Microsoft says the recommendations are based on industry standards such as the CIS benchmarks and follow each app provider's best practices, and that SSPM data feeds Microsoft Secure Score.
  • Advanced threat protection. Part of Microsoft's XDR approach, correlating signals across the kill chain.
  • App-to-app protection. Extends coverage to OAuth-enabled apps that have permissions to critical data, including watching for unused apps and monitoring current and expired credentials.

For discovery, Microsoft describes an Identify, Assess and Manage model. Discovered apps are assessed against more than 90 risk indicators, and policies can then monitor them and alert on anomalies such as unusual usage spikes.

This guide concentrates on the last area and on session controls, because those are where most non-human identity risk sits. An OAuth app that a user consented to can read mail, files or records long after the original need has passed, and it does so without a person signing in each time.

Admin roles and least privilege

Set up admin access before you build policies, because the people who can change policies can also switch them off. Microsoft documents two layers of roles.

Microsoft Entra and Microsoft 365 roles

These roles grant access to Defender for Cloud Apps by default and are assigned in Entra or Microsoft 365 rather than in Defender for Cloud Apps itself.

RoleAccess described by Microsoft
Security administratorFull access, including adding admins, policies and settings, governance actions and SIEM agents
Cloud App Security administratorFull access, scoped to Defender for Cloud Apps only
Compliance administratorRead-only plus alert management; can create and modify file policies and allow file governance actions
Compliance data administratorRead-only; can create and modify file policies, allow file governance actions and view discovery reports
Security operatorRead-only plus alert management; cannot create or change policies or approve and ban apps
Security readerRead-only, and can create API access tokens
Global readerFull read-only access

Microsoft says Global Administrator is highly privileged and should be limited to emergency scenarios. It also notes that the full-access Entra roles (Global administrator, Security administrator, Cloud App Security administrator) cannot be overridden, while other roles can be raised by adding the user manually inside Defender for Cloud Apps.

Built-in Defender for Cloud Apps roles

Under Permissions > Cloud Apps > Roles in the Microsoft Defender portal, Microsoft lists organisation-wide roles (Global administrator, Compliance administrator, Security reader and Security operator, each scoped to Defender for Cloud Apps) and scoped roles, including Cloud Discovery global admin and Cloud Discovery report admin. Microsoft notes that the App/instance admin and User group admin roles are no longer available for new configurations, although existing ones remain supported.

Points that are easy to miss

  • App governance uses Entra roles. Microsoft states that access to app governance is controlled by Entra ID roles only, with one exception: unified RBAC permissions grant access to app governance data in the OAuthAppInfo advanced hunting table.
  • Security reader can mint tokens. Because the Security reader role can create API access tokens, a read-only role can still produce a long-lived credential. In our view, treat these tokens as non-human identities: record an owner, store them in a secrets manager and review them on a schedule.
  • Editing admin access requires at least Security Administrator, according to Microsoft.

Our Microsoft 365 admin centres and admin roles page covers the wider role landscape.

Turning on and scoping app governance

Microsoft describes app governance as a set of security and policy management capabilities for OAuth-enabled apps, giving visibility, remediation and governance over how apps and users access and share sensitive data. It covers OAuth-enabled apps registered on Microsoft Entra ID, Google and Salesforce, and shows which user-installed apps have access to data in Microsoft 365, Google Workspace and Salesforce, what permissions they hold and which users granted them.

Microsoft groups the capability into four parts: insights (a dashboard of non-Microsoft apps registered to Entra ID, Google or Salesforce), governance (proactive or reactive policies), detection (alerts on anomalous, noncompliant, malicious or risky apps) and remediation.

Where to find it

  • Open App governance > Overview in the Microsoft Defender portal. Your account needs one of the supported administrator roles to see any data.
  • Select an app on the App governance page to see details in a side pane, including permission usage. View in Entra ID opens the app in the Microsoft Entra admin center.
  • App governance alerts appear in the Defender XDR alerts list with the detection source set to App Governance, so triage can happen in the same queue as other alerts.

Our suggested first pass

  1. Export the list of OAuth apps and record, for each, the publisher, permissions, number of consenting users and last use.
  2. Assign an internal owner to every app that holds high privilege or touches mail and files. Apps without an owner go to a review queue.
  3. Agree a disable and rollback process with the Entra and SaaS owners before turning on any automatic action.

App governance policies

App governance policies for Microsoft 365 apps are created under App governance > Policies > Microsoft 365 with Create New Policy. You can start from a template or build a custom policy.

Templates

Microsoft groups the templates into four categories:

CategoryTemplates and default conditions
UsageUnused app (last used more than 90 days); new app with high data usage (registered 7 days or less, over 1 GB in a day); increase in users (at least 50% more consenting users over 90 days)
PermissionsOverprivileged app; new highly privileged app; new app with non-Graph API permissions
Risk managementNew high risk app (registered 7 days or less, risk score greater than 70)
CertificationNew uncertified app (registered 7 days or less, no certification)

For a non-human identity programme, the unused app, overprivileged app and new highly privileged app templates are the most direct fit, because they target standing access that nobody is using and permissions wider than the app needs.

Custom conditions

In a custom policy, all conditions must be met for an alert. Documented conditions include:

  • Registration age, last used and app origin (external or internal).
  • Risk score, certification (no certification, publisher attested, Microsoft 365 Certified) and publisher verified.
  • Application permissions, delegated permissions, highly privileged, overprivileged and non-Graph API permissions.
  • Data usage and data usage trend, API access and API access trend.
  • Number of consenting users, increase in consenting users, priority account consent given, and names and roles of consenting users.
  • Sensitivity labels accessed (last 30 days), services accessed (Exchange, OneDrive, SharePoint, Teams) and error rate.

Microsoft notes that several conditions apply only to apps using Microsoft Graph permissions and are skipped for apps that use only non-Graph APIs. Build at least one policy on conditions that apply to all apps, such as registration age, consenting users or certification, so that non-Graph apps are not missed.

Actions and status

  • The documented action is Disable app, which disables the app when an alert fires. Microsoft advises caution because policies can affect users and legitimate app use.
  • Policy status is Active or Inactive when created. To keep a policy without alerts, Microsoft suggests disabling it rather than deleting it.
  • A policy's name cannot be changed after creation, though description and severity can. Use a naming convention from the start.

Our suggested rollout: create each policy without the Disable app action, review alerts for two to four weeks, confirm owners for anything flagged, then enable the action on the narrowest policies first, such as new highly privileged apps from unverified publishers.

Other apps

For Salesforce and Google Workspace apps, policies are created under Cloud Apps > App governance > Policies > Other apps, with filters for permission and community use and scoping by the group memberships of authorising users.

OAuth app policies and anomaly detections

Microsoft also documents OAuth app policies under Cloud Apps > Policies > Policy management, on the Threat detection tab, via Create policy > OAuth app policy. Microsoft notes that where app governance and preview features are enabled, you should create the policy from the App governance page instead.

Documented filters include the permission an app requests and community use, which classifies a permission grant as common, uncommon or rare. Policies can be scoped to the group membership of authorising users, such as administrators. Microsoft's example is a policy that targets uncommon apps requesting high permissions only when an administrator authorised them, which is a good pattern because admin consent usually grants the widest access.

Marking a permission as banned disables the enterprise application linked to the OAuth app, and permissions can also be marked approved. OAuth app policies alert only for apps authorised by users in your tenant.

Built-in anomaly detections

Microsoft lists four anomaly detection policies: Misleading OAuth app name, Misleading publisher name for an OAuth app, Malicious OAuth app consent, and Suspicious OAuth app file download activities. Their severity cannot be changed. Make sure these alerts route to a team that can act on them quickly, because a malicious consent alert usually means a live grant is already in place. These behaviours relate to MITRE ATT&CK T1528 Steal Application Access Token and T1550.001 Application Access Token.

Session controls with Conditional Access app control

Microsoft explains that access policies allow or block access completely, while session policies allow access and monitor the session in real time, with Conditional Access app control used to limit specific session activities.

Prerequisites

  • A Defender for Cloud Apps licence and a Microsoft Entra ID P1 licence, standalone or as part of another licence.
  • Apps onboarded to Conditional Access app control. Microsoft Entra ID apps are onboarded automatically.
  • A Microsoft Entra Conditional Access policy that targets the apps with Access controls > Session > Use Conditional Access App Control. Microsoft advises setting it to Report-only first, switching to On after confirming impact, and excluding emergency access accounts.
  • The Microsoft Defender for Cloud Apps - Session Controls enterprise application must be allowed. A Conditional Access policy that blocks it prevents session control, so include it in location-based policies.

Our Entra Conditional Access Baseline Policy Set Template can help you fit the session control policy into a wider set.

Session control types

TypeWhat Microsoft says it does
Monitor onlyMonitors only the login activity
Block activitiesBlocks activities defined by the activity type filter; all activities from selected apps are logged
Control file download (with inspection)Monitors downloads; can be combined with Block, Audit or Protect
Control file upload (with inspection)Monitors uploads; can block uploads of sensitive files without the correct label

Building a session policy

  1. Go to Cloud Apps > Policies > Policy management, open the Conditional Access tab and select Create policy > Session policy, or start from a template.
  2. Set the name, severity, category, description and session control type.
  3. Add activity filters such as activity type, app, device, IP address, location, user and user agent, and preview results.
  4. For file controls, set file filters (sensitivity label, name, extension, size) and an inspection method.
  5. Choose Audit, Block or Protect. Protect is available only for Control file download and applies sensitivity labels.
  6. Configure alerts, including a daily alert limit, then create the policy.

Microsoft documents a few behaviours worth knowing. Policies created for a host app such as Teams, Exchange or Gmail do not apply to related resource apps such as SharePoint, OneDrive or Google Drive, so create separate policies. When two session policies conflict, the more restrictive one wins. Require step-up authentication (preview) can send a session back to Conditional Access for re-evaluation. Users are told by default that their sessions are monitored.

Testing

Microsoft suggests signing out, signing in again as a matching user, and testing from both managed and unmanaged devices. A proxied session shows a lock icon or a .mcas suffix in the app URL. Check the policy report under Policy management for matches.

Alerting, review and the non-human identity angle

Configuration is only useful if someone acts on the output. In our view a workable operating rhythm looks like this:

  • Daily: triage App Governance alerts and the four OAuth anomaly detections in the Defender XDR queue.
  • Monthly: review new apps registered in the last 30 days, apps with new high-privilege permissions, and session policy reports.
  • Quarterly: run an unused app review with owners, remove grants that are no longer needed, and review admin role holders and any API access tokens created in Defender for Cloud Apps.

Each OAuth app is a non-human identity: it has credentials, permissions and an owner, or should. Microsoft notes that app-to-app protection monitors current and expired credentials. Use that signal alongside Entra app registration reviews so that expired or unused credentials are removed rather than left in place. Where an app runs as a workload in Entra, our Conditional Access for Workload Identities page covers controls that apply to the app's own sign-ins.

Common failure patterns

  • Turning on Disable app on day one. Automatic disabling before owners are known can break business processes and erode trust in the tool.
  • Relying only on Graph-only conditions. Apps that use only non-Graph APIs skip those conditions and go unwatched.
  • Assuming the Defender for Cloud Apps role page controls app governance. App governance access follows Entra ID roles.
  • Ignoring tokens created by readers. API access tokens created under the Security reader role are not tracked like other secrets.
  • Blocking the Session Controls app. A location-based Conditional Access policy that blocks the Session Controls enterprise application silently stops session control.
  • One policy for a host app. A session policy for Exchange or Teams does not cover the related SharePoint or OneDrive resource.
  • Skipping Report-only. Switching the Conditional Access policy straight to On without measuring impact, or forgetting to exclude break-glass accounts.
  • Deleting noisy policies. Deleting rather than disabling loses the configuration and its history.

Practitioner checklist

  • Assign Defender for Cloud Apps access with the least privileged role, and keep Global Administrator for emergencies.
  • Review who holds the Entra roles that grant app governance access.
  • Inventory API access tokens created in Defender for Cloud Apps, give each an owner and store them in a secrets manager.
  • Open App governance, export OAuth apps and assign owners to high-privilege apps.
  • Enable the unused app, overprivileged app and new highly privileged app templates without automatic actions at first.
  • Add at least one custom policy on conditions that apply to non-Graph apps.
  • Route App Governance alerts and the four OAuth anomaly detections to a named team.
  • Build the session control Conditional Access policy in Report-only, exclude break-glass accounts and allow the Session Controls application.
  • Create separate session policies for host apps and their resource apps, and test on managed and unmanaged devices.
  • Enable Disable app only on narrow, reviewed policies, with a documented rollback.

Standards and references

Related NHI Mgmt Group resources: Microsoft Defender XDR · Microsoft Defender for Identity · Entra Conditional Access Baseline Policy Set Template · Microsoft 365 admin centres and admin roles

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.