Home
%3CLINGO-SUB%20id%3D%22lingo-sub-729371%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Mailbag%3A%20Conditional%20Access%20Q%26amp%3BA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-729371%22%20slang%3D%22en-US%22%3E%3CP%3EReally%20nice%20article%20%3Athumbs_up%3A%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBeen%20enjoying%20conditional%20access%20for%20a%20while%20now%2C%20keeps%20our%20security%20team%20very%20happy.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-730080%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Mailbag%3A%20Conditional%20Access%20Q%26amp%3BA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-730080%22%20slang%3D%22en-US%22%3E%3CP%3EGreat%20and%20informative%20article.%20Excellent%20that%20you%20brought%20up%20Q7%2C%20very%20important!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-735052%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Mailbag%3A%20Conditional%20Access%20Q%26amp%3BA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-735052%22%20slang%3D%22en-US%22%3E%3CP%3EGreat%20article.%20This%20should%20be%20added%20to%20the%20Conditional%20Access%20docs%20as%20a%20FAQ.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-735919%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Mailbag%3A%20Conditional%20Access%20Q%26amp%3BA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-735919%22%20slang%3D%22en-US%22%3E%3CP%3EGreat%20article.%20You%20should%20refer%20to%20this%20form%20docs%20or%20add%20it%20to%20docs%20in%20it%C2%B4s%20entirety.%20Keep%20'em%20changes%20coming!%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-566492%22%20slang%3D%22en-US%22%3EAzure%20AD%20Mailbag%3A%20Conditional%20Access%20Q%26amp%3BA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-566492%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGreetings!%20This%20is%20Sue%20Bohn%2C%20director%20of%20program%20management%20for%20Identity%20and%20Access%20Management.%20One%20of%20our%20most%20popular%20features%20in%20Azure%20Active%20Directory%20is%20Conditional%20Access%20which%20provides%20the%20flexibility%20to%20enable%20additional%20security%20controls%20before%20granting%20access.%20It%20is%20typically%20deployed%20first%20with%20Azure%20multifactor%20authentication%20(MFA).%20Then%20customers%20take%20a%20deeper%20look%20at%20some%20of%20the%20more%20advanced%20controls%20such%20as%20device%20type%2C%20client%20app%2C%20and%20session%20controls.%20Once%20users%20become%20members%20of%20several%20policies%2C%20it%20begs%20the%20question%20which%20controls%20are%20applied%20first.%20Which%20one%20wins%3F%20Read%20on%20as%20Andres%20from%20our%20Get%20to%20Production%20team%20answers%20the%20most%20common%20set%20of%20questions%20to%20help%20you%20understand%20how%20Conditional%20Access%20works%20under%20the%20hood.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E----%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHi%20all%2C%20Andres%20here!%20Today%20I%E2%80%99ll%20be%20covering%20the%20inner%20workings%20of%20Conditional%20Access%20(CA)%20and%20some%20details%20you%20need%20to%20be%20aware%20of%20to%20ensure%20that%20you%E2%80%99re%20correctly%20configuring%20CA%20to%20protect%20all%20scenarios.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EQ1%3A%20How%20does%20Conditional%20Access%20work%3F%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ECA%20protects%20token%20issuance.%20CA%20policies%20are%20evaluated%20after%20authentication%2C%20they%E2%80%99re%20determined%20to%20be%20in%20scope%20for%20the%20token%20request%20at%20initial%20sign-in%2C%20or%20when%20using%20a%20refresh%20token%20to%20obtain%20a%20fresh%20access%20token.%3C%2FP%3E%0A%3CP%3EThe%20key%20concept%20to%20understand%20is%20that%20what%20you%20see%20in%20CA%20as%20%22Cloud%20Apps%22%20indicates%20the%20token%20audiences%20that%20the%20policy%20is%20protecting.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20example%2C%20if%20you%20create%20a%20new%20policy%20and%20select%20%22Exchange%20Online%22%20as%20the%20application%20and%20%22Require%20MFA%22%20as%20the%20control%2C%20then%20CA%20will%20enforce%20MFA%20when%20an%20app%20is%20requesting%20a%20token%20for%20Exchange%20Online.%20The%20token%20Audience%20in%20this%20case%20is%20Exchange%20Online.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20provide%20more%20clarity%20and%20help%20with%20troubleshooting%2C%20we%20recently%20started%20including%20the%20Resource%20and%20Resource%20ID%20fields%20on%20Azure%20AD%20Sign-in%20Logs.%20The%20Resource%20field%20shows%20the%20token%20audience.%20Here%20is%20an%20example%2C%20where%20User3%20is%20using%20the%20Outlook%20Mobile%20app%20client%20to%20request%20a%20token%20for%20Office%20365%20Exchange%20Online%2C%20and%20it%20is%20successfully%20issued.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20669px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121541i924EEEBD75C13C28%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22CA1.png%22%20title%3D%22CA1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20all%20Grant%20controls%20are%20enforced%2C%20any%20Session%20controls%20will%20be%20applied.%20App%20Enforced%20Restrictions%20and%20Conditional%20Access%20App%20Control%20are%20not%20enforced%20by%20CA%20directly%2C%20in%20these%20cases%20CA%20passes%20flags%20for%20the%20app%20to%20enforce%20the%20corresponding%20controls.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EQ2%3A%20What%20is%20the%20difference%20between%20assigning%20access%20to%20applications%20vs%20conditional%20access%20policies%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EIn%20Azure%20AD%2C%20users%20can%20be%20allowed%20access%20to%20applications%20in%20two%20ways%2C%20an%20app%20can%20be%20configured%20to%20not%20require%20user%20assignment%2C%20hence%20granting%20access%20to%20all%20users%20(including%20Guest%20users)%3B%20or%20by%20explicitly%20defining%20which%20groups%20of%20users%20should%20have%20access.%20This%20is%20the%20best%20way%20to%20define%20which%20users%20should%20have%20access%20to%20apps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAzure%20AD%20will%20issue%20tokens%20to%20users%20that%20have%20been%20granted%20to%20an%20app.%20However%2C%20if%20a%20CA%20policy%20is%20in%20scope%20of%20the%20access%20request%2C%20even%20though%20the%20user%20is%20assigned%20access%20to%20the%20application%2C%20they%20would%20have%20to%20meet%20the%20controls%20for%20that%20specific%20access%20request%20in%20order%20to%20have%20a%20token%20issued.%20This%20allows%20organizations%20to%20have%20more%20control%20of%20when%20a%20token%20is%20issued%20based%20on%20the%20conditions%20of%20the%20access%20request%2C%20and%20not%20just%20application%20assignment%20alone.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20manage%20application%20access%20by%20assigning%20users%20to%20the%20specific%20application%20but%20may%20use%20CA%20policies%20to%20require%20additional%20controls%20depending%20on%20the%20different%20conditions%20of%20the%20access%20request.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EQ3%3A%20Are%20policies%20evaluated%20in%20a%20specific%20order%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EAll%20policies%20are%20evaluated%20in%20no%20particular%20order.%20A%20policy%20applies%20when%20all%20configured%20conditions%20are%20satisfied.%20If%20multiple%20policies%20apply%2C%20the%20controls%20of%20all%20matching%20policies%20are%20enforced%2C%20which%20leads%20us%20to%20the%20next%20question.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EQ4%3A%20In%20what%20order%20are%20controls%20applied%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EBlock%20always%20wins.%20After%20this%2C%20the%20controls%20are%20enforced%20in%20the%20following%20order%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EMulti-factor%20Authentication%3C%2FLI%3E%0A%3CLI%3EApproved%20Client%20App%2FApp%20Protection%20Policy%3C%2FLI%3E%0A%3CLI%3EManaged%20Device%20(Compliant%2C%20Hybrid%20Azure%20AD%20Join)%3C%2FLI%3E%0A%3CLI%3ECustom%20controls%20(including%20TOU)%3C%2FLI%3E%0A%3CLI%3ESession%20controls%20(App%20Enforced%2C%20MCAS%2C%20Token%20Lifetime)%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3ESomething%20to%20note%20here%20is%20that%20Identity%20Protection%20policies%20are%20applied%20before%20CA%20evaluation.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EQ5%3A%20How%20do%20we%20determine%20that%20a%20device%20is%20trusted%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EA%20trusted%20device%20is%20a%20managed%20device%20that%20is%20registered%20to%20Azure%20AD%20and%20is%20either%20marked%20as%20compliant%20by%20a%20supported%20MDM%20solution%20such%20as%20Intune%3B%20or%20is%20a%20member%20of%20an%20Active%20Directory%20forest%20on-premises.%20While%20being%20registered%20to%20Azure%20AD%20is%20a%20pre-requisite%20to%20being%20considered%20a%20managed%20device%2C%20it%20isn%E2%80%99t%20enough%20to%20make%20access%20decisions%20with%20CA.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20is%20a%20diagram%20that%20shows%20how%20managed%20devices%20are%20considered%20trusted%20by%20CA.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121542iA0360F90812678FF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22CA2.png%22%20title%3D%22CA2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EQ6%3A%20How%20do%20we%20tell%20if%20the%20Client%20App%20is%20a%20Browser%20or%20a%20Mobile%20App%20or%20a%20Desktop%20Client%3F%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EWe%20use%20information%20provided%20when%20the%20application%20was%20published%20on%20the%20Microsoft%20app%20directory.%20If%20the%20application%20was%20registered%20as%20a%20Confidential%20Client%20or%20the%20app%20uses%20security%20assestions%20markup%20language%20(SAML)%2C%20we%20consider%20the%20client%20a%20browser.%20If%20the%20application%20was%20registered%20as%20a%20Public%20Client%2C%20we%20consider%20the%20client%20a%20Mobile%20or%20Desktop%20App.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftools.ietf.org%2Fhtml%2Frfc6749%23section-2.1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHere%3C%2FA%3E%3C%2FSPAN%3E%20is%20the%20oAuth%202.0%20spec%20definition%20of%20Confidential%20and%20Public%20clients.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EQ7%3A%20How%20do%20we%20know%20which%20device%20platform%20the%20client%20app%20is%20running%20on%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EAs%20you%20might%20already%20know%2C%20CA%20policies%20can%20be%20targeted%20to%20specific%20Device%20Platforms.%20This%20feature%20is%20there%20to%20provide%20you%20more%20flexibility%20at%20the%20time%20of%20configuring%20policies%20and%20to%20allow%20you%20to%20only%20enforce%20controls%20to%20device%20platforms%20that%20can%20satisfy%20them.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20determine%20the%20device%20platform%20by%20parsing%20the%20User%20Agent%20String%2C%20which%20is%20constructed%20by%20the%20client%20application%20and%20only%20exists%20for%20web%20protocols.%20There%E2%80%99s%20no%20User%20Agent%20String%20on%20some%20of%20the%20protocols%20that%20CA%20supports%2C%20like%20POP3%20or%20SMTP.%20As%20a%20result%2C%20you%20should%20%3CU%3Enot%20rely%3C%2FU%3E%20on%20the%20User%20Agent%20String%20to%20be%20present%20or%20to%20be%20accurate.%20Most%20browsers%20have%20a%20function%20to%20set%20an%20arbitrary%20User%20Agent%20String%20for%20testing%20purposes.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOften%20when%20customers%20are%20first%20rolling%20out%20policies%2C%20they%20only%20target%20specific%20device%20platforms%20like%20iOS%20and%20Android.%20This%20can%20be%20an%20efficient%20approach%2C%20but%20it%E2%80%99s%20important%20to%20remember%20that%20platform%20detection%20is%20best%20effort.%20As%20an%20end%20state%2C%20you%20should%20always%20design%20your%20CA%20policies%20to%20provide%20full%20coverage%20of%20all%20device%20platforms%2C%20including%20what%20to%20do%20when%20the%20device%20platform%20cannot%20be%20matched%20to%20one%20of%20the%20available%20options%20in%20CA.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%20me%20give%20you%20an%20example.%20Here%20are%202%20policies%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EThe%20first%20one%20applies%20to%20Windows%20and%20enforces%20the%20device%20to%20be%20Hybrid%20Joined.%3C%2FLI%3E%0A%3CLI%3EThe%20second%20one%20applies%20to%20Android%2C%20iOS%2C%20Windows%20Phone%20and%20macOS%2C%20and%20enforces%20the%20device%20to%20be%20Compliant.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20694px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121543iFB1077B74C956397%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22CA3.png%22%20title%3D%22CA3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat's%20great%2C%20but%20what%20if%20CA%20is%20processing%20a%20request%20where%20the%20User%20Agent%20String%20is%20malformed%2C%20spoofed%20or%20not%20present%3F%20The%20result%20will%20be%20that%20no%20policy%20is%20applied%2C%20and%20the%20user%20will%20be%20granted%20access.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%E2%80%99s%20a%20way%20in%20which%20you%20can%20model%20your%20policies%20so%20you%20can%20catch%20unknown%20device%20platforms.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ECreate%20a%20new%20policy%20and%20target%20it%20to%20All%20Cloud%20Apps%20and%20a%20few%20test%20users%2C%20you%20can%20apply%20it%20to%20All%20Users%20once%20you%E2%80%99re%20happy%20with%20the%20results.%3C%2FLI%3E%0A%3CLI%3EConfigure%20the%20Device%20Platforms%20condition%20as%20below.%20In%20this%20case%20you%E2%80%99%20re%20saying%3A%20(All%20Device%20Platforms)%20-%20(Android%2C%20iOS%2C%20WP%2C%20Windows%2C%20macOS)%20%3D%20unknown%20device%20platform.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20594px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121544iD748FCE2CEAD23D3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22CA4.png%22%20title%3D%22CA4.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESelect%20the%20control%20you%20want%20to%20enforce.%20You%20can%20start%20by%20enforcing%20MFA%20or%20simply%20Block%20access.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EComing%20back%20to%20the%20spoofed%20User%20Agent%20String%20example%2C%20by%20creating%20this%20policy%20you%E2%80%99re%20making%20sure%20that%20at%20least%20one%20control%20will%20be%20applied%20to%20flows%20where%20the%20Device%20Platform%20cannot%20be%20determined.%20Additionally%2C%20it%20gives%20you%20the%20ability%20to%20monitor%20and%20alert%20on%20these%20sign-ins%20and%2C%20if%20needed%2C%20exclude%20users%2Fapps%20that%20have%20legitimate%20reasons%20for%20using%20a%20device%20platform%20not%20covered%20by%20CA.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20any%20questions%2C%20you%20can%20reach%20us%20at%20AskAzureADBlog%40microsoft.com%2C%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FAzure-Active-Directory%2Fct-p%2FAzureActiveDirectory%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3ETech%20Communities%3C%2FA%3E%3C%2FSPAN%3E%20or%20on%20Twitter%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2FAzureAD%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%40AzureAD%3C%2FA%3E%3C%2FSPAN%3E%2C%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2Fmarkmorow%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%40MarkMorow%3C%2FA%3E%3C%2FSPAN%3E%20and%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2FAlex_A_Simons%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%40Alex_A_Simons%3C%2FA%3E%3C%2FSPAN%3E.%20You%20can%20also%20ask%20questions%20in%20the%20comments%20of%20this%20post.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECheck%20out%20our%20previous%20mailbag%20posts!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAndres%20Canello%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-566492%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20dive%20deep%20into%20Conditional%20Access%20and%20answer%20your%20most%20common%20questions%20in%20this%20week's%20Mailbag!%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-752132%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Mailbag%3A%20Conditional%20Access%20Q%26amp%3BA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-752132%22%20slang%3D%22en-US%22%3EVery%20interesting%20topic%2C%20especially%20since%20it's%20now%20part%20of%20Microsoft%20365%20Business.%20Many%20thanks!%3C%2FLINGO-BODY%3E
Microsoft

 

Greetings! This is Sue Bohn, director of program management for Identity and Access Management. One of our most popular features in Azure Active Directory is Conditional Access which provides the flexibility to enable additional security controls before granting access. It is typically deployed first with Azure multifactor authentication (MFA). Then customers take a deeper look at some of the more advanced controls such as device type, client app, and session controls. Once users become members of several policies, it begs the question which controls are applied first. Which one wins? Read on as Andres from our Get to Production team answers the most common set of questions to help you understand how Conditional Access works under the hood.

 

----

 

Hi all, Andres here! Today I’ll be covering the inner workings of Conditional Access (CA) and some details you need to be aware of to ensure that you’re correctly configuring CA to protect all scenarios.

 

Q1: How does Conditional Access work? 

CA protects token issuance. CA policies are evaluated after authentication, they’re determined to be in scope for the token request at initial sign-in, or when using a refresh token to obtain a fresh access token.

The key concept to understand is that what you see in CA as "Cloud Apps" indicates the token audiences that the policy is protecting.

 

For example, if you create a new policy and select "Exchange Online" as the application and "Require MFA" as the control, then CA will enforce MFA when an app is requesting a token for Exchange Online. The token Audience in this case is Exchange Online.

 

To provide more clarity and help with troubleshooting, we recently started including the Resource and Resource ID fields on Azure AD Sign-in Logs. The Resource field shows the token audience. Here is an example, where User3 is using the Outlook Mobile app client to request a token for Office 365 Exchange Online, and it is successfully issued.

 

 

CA1.png

 

After all Grant controls are enforced, any Session controls will be applied. App Enforced Restrictions and Conditional Access App Control are not enforced by CA directly, in these cases CA passes flags for the app to enforce the corresponding controls.

 

Q2: What is the difference between assigning access to applications vs conditional access policies?

In Azure AD, users can be allowed access to applications in two ways, an app can be configured to not require user assignment, hence granting access to all users (including Guest users); or by explicitly defining which groups of users should have access. This is the best way to define which users should have access to apps.

 

Azure AD will issue tokens to users that have been granted to an app. However, if a CA policy is in scope of the access request, even though the user is assigned access to the application, they would have to meet the controls for that specific access request in order to have a token issued. This allows organizations to have more control of when a token is issued based on the conditions of the access request, and not just application assignment alone.

 

You manage application access by assigning users to the specific application but may use CA policies to require additional controls depending on the different conditions of the access request.

 

Q3: Are policies evaluated in a specific order?

All policies are evaluated in no particular order. A policy applies when all configured conditions are satisfied. If multiple policies apply, the controls of all matching policies are enforced, which leads us to the next question.

 

Q4: In what order are controls applied?

Block always wins. After this, the controls are enforced in the following order:

  1. Multi-factor Authentication
  2. Approved Client App/App Protection Policy
  3. Managed Device (Compliant, Hybrid Azure AD Join)
  4. Custom controls (including TOU)
  5. Session controls (App Enforced, MCAS, Token Lifetime)

Something to note here is that Identity Protection policies are applied before CA evaluation.

 

Q5: How do we determine that a device is trusted?

A trusted device is a managed device that is registered to Azure AD and is either marked as compliant by a supported MDM solution such as Intune; or is a member of an Active Directory forest on-premises. While being registered to Azure AD is a pre-requisite to being considered a managed device, it isn’t enough to make access decisions with CA.

 

Here is a diagram that shows how managed devices are considered trusted by CA.

 

 

CA2.png

 

Q6: How do we tell if the Client App is a Browser or a Mobile App or a Desktop Client? 

We use information provided when the application was published on the Microsoft app directory. If the application was registered as a Confidential Client or the app uses security assestions markup language (SAML), we consider the client a browser. If the application was registered as a Public Client, we consider the client a Mobile or Desktop App.

 

Here is the oAuth 2.0 spec definition of Confidential and Public clients.

 

Q7: How do we know which device platform the client app is running on?

As you might already know, CA policies can be targeted to specific Device Platforms. This feature is there to provide you more flexibility at the time of configuring policies and to allow you to only enforce controls to device platforms that can satisfy them.

 

We determine the device platform by parsing the User Agent String, which is constructed by the client application and only exists for web protocols. There’s no User Agent String on some of the protocols that CA supports, like POP3 or SMTP. As a result, you should not rely on the User Agent String to be present or to be accurate. Most browsers have a function to set an arbitrary User Agent String for testing purposes.

 

Often when customers are first rolling out policies, they only target specific device platforms like iOS and Android. This can be an efficient approach, but it’s important to remember that platform detection is best effort. As an end state, you should always design your CA policies to provide full coverage of all device platforms, including what to do when the device platform cannot be matched to one of the available options in CA.

 

Let me give you an example. Here are 2 policies:

  • The first one applies to Windows and enforces the device to be Hybrid Joined.
  • The second one applies to Android, iOS, Windows Phone and macOS, and enforces the device to be Compliant.

 

CA3.png

 

That's great, but what if CA is processing a request where the User Agent String is malformed, spoofed or not present? The result will be that no policy is applied, and the user will be granted access.

 

Here’s a way in which you can model your policies so you can catch unknown device platforms.

  • Create a new policy and target it to All Cloud Apps and a few test users, you can apply it to All Users once you’re happy with the results.
  • Configure the Device Platforms condition as below. In this case you’ re saying: (All Device Platforms) - (Android, iOS, WP, Windows, macOS) = unknown device platform.

 

CA4.png

 

  • Select the control you want to enforce. You can start by enforcing MFA or simply Block access.

 

Coming back to the spoofed User Agent String example, by creating this policy you’re making sure that at least one control will be applied to flows where the Device Platform cannot be determined. Additionally, it gives you the ability to monitor and alert on these sign-ins and, if needed, exclude users/apps that have legitimate reasons for using a device platform not covered by CA.

 

For any questions, you can reach us at AskAzureADBlog@microsoft.com, Tech Communities or on Twitter @AzureAD, @MarkMorow and @Alex_A_Simons. You can also ask questions in the comments of this post.

 

Check out our previous mailbag posts!

 

Andres Canello

5 Comments
Senior Member

Really nice article :thumbs_up:

 

Been enjoying conditional access for a while now, keeps our security team very happy.

Senior Member

Great and informative article. Excellent that you brought up Q7, very important!

Regular Visitor

Great article. This should be added to the Conditional Access docs as a FAQ.

Contributor

Great article. You should refer to this form docs or add it to docs in it´s entirety. Keep 'em changes coming! :)

Contributor
Very interesting topic, especially since it's now part of Microsoft 365 Business. Many thanks!