Events
Apr 9, 3 PM - Apr 10, 12 PM
Code the Future with AI and connect with Java peers and experts at JDConf 2025.
Register NowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Currently Conditional Access policies can be applied to all apps or to individual apps. Organizations with a large number of apps might find this process difficult to manage across multiple Conditional Access policies.
Application filters for Conditional Access allow organizations to tag service principals with custom attributes. These custom attributes are then added to their Conditional Access policies. Filters for applications are evaluated at token issuance runtime, a common question is if apps are assigned at runtime or configuration time.
In this document, you create a custom attribute set, assign a custom security attribute to your application, and create a Conditional Access policy to secure the application.
Custom security attributes are security sensitive and can only be managed by delegated users. One or more of the following roles should be assigned to the users who manage or report on these attributes.
Role name | Description |
---|---|
Attribute Assignment Administrator | Assign custom security attribute keys and values to supported Microsoft Entra objects. |
Attribute Assignment Reader | Read custom security attribute keys and values for supported Microsoft Entra objects. |
Attribute Definition Administrator | Define and manage the definition of custom security attributes. |
Attribute Definition Reader | Read the definition of custom security attributes. |
Assign the appropriate role to the users who manage or report on these attributes at the directory scope. For detailed steps, see Assign Microsoft Entra roles.
Important
By default, Global Administrator and other administrator roles do not have permissions to read, define, or assign custom security attributes.
Follow the instructions in the article, Add or deactivate custom security attributes in Microsoft Entra ID to add the following Attribute set and New attributes.
Note
Conditional Access filters for applications only works with custom security attributes of type "string". Custom Security Attributes support creation of Boolean data type but Conditional Access Policy only supports "string".
After administrators confirm the settings using report-only mode, they can move the Enable policy toggle from Report-only to On.
If you already have a test application that makes use of a service principal, you can skip this step.
Set up a sample application that, demonstrates how a job or a Windows service can run with an application identity, instead of a user's identity. Follow the instructions in the article Quickstart: Get a token and call the Microsoft Graph API by using a console app's identity to create this application.
When you don't have a service principal listed in your tenant, it can't be targeted. The Office 365 suite is an example of one such service principal.
Sign in as a user who the policy would apply to and test to see that MFA is required when accessing the application.
Determine effect using Conditional Access report-only mode
Use report-only mode for Conditional Access to determine the results of new policy decisions.
Events
Apr 9, 3 PM - Apr 10, 12 PM
Code the Future with AI and connect with Java peers and experts at JDConf 2025.
Register NowTraining
Module
Plan, implement, and administer Conditional Access - Training
Conditional Access gives a fine granularity of control over which users can do specific activities, access which resources, and how to ensure data and systems are safe.
Certification
Microsoft Certified: Identity and Access Administrator Associate - Certifications
Demonstrate the features of Microsoft Entra ID to modernize identity solutions, implement hybrid solutions, and implement identity governance.
Documentation
Cloud apps, actions, and authentication context in Conditional Access policy - Microsoft Entra ID
What are cloud apps, actions, and authentication context in a Microsoft Entra Conditional Access policy
Conditional Access service dependencies - Microsoft Entra ID
Learn how conditions are used in Microsoft Entra Conditional Access to trigger a policy.
Conditions in Conditional Access policy - Microsoft Entra ID
What are conditions in a Microsoft Entra Conditional Access policy?