{"id":1625,"date":"2021-08-10T13:41:21","date_gmt":"2021-08-10T17:41:21","guid":{"rendered":"https:\/\/increasec.com\/?p=1625"},"modified":"2021-11-19T13:57:27","modified_gmt":"2021-11-19T18:57:27","slug":"geofiltering-office365-logins","status":"publish","type":"post","link":"https:\/\/increasec.com\/?p=1625","title":{"rendered":"GeoFiltering Office365 logins"},"content":{"rendered":"\n<p>Requires:<br>1 mgt account with P1 license $8\/m<br>other user can be a basic user license<\/p>\n\n\n\n<p><br>Login as mgt account <\/p>\n\n\n\n<p>Set Named Locations  <a href=\"https:\/\/aad.portal.azure.com\/#blade\/Microsoft_AAD_IAM\/SecurityMenuBlade\/NamedLocations\n\">https:\/\/aad.portal.azure.com\/#blade\/Microsoft_AAD_IAM\/SecurityMenuBlade\/NamedLocations<br><\/a>you will need a named location for each country you want to allow logins from<\/p>\n\n\n\n<p><br>Set Conditional Access Rules  <a href=\"https:\/\/aad.portal.azure.com\/#blade\/Microsoft_AAD_IAM\/ConditionalAccessBlade\/Policies\">Conditional Access &#8211; Azure Active Directory admin center<\/a><br>Users and Groups; choose everyone but exclude your mgt account to make sure you don&#8217;t lock yourself out<br>Cloud Apps; choose all<br>Conditions; locations, Configure=yes, Include=All, Exclude=whatever named location you want to ALLOW<br>Access Controls=block<\/p>\n\n\n\n<p>test using a VPN like TunnelBear on your cell phone that lets you choose a country.  then use your cell phone brower to do a web logon.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"923\" height=\"772\" src=\"https:\/\/increasec.com\/wp-content\/uploads\/2021\/08\/image.png\" alt=\"\" class=\"wp-image-1626\" srcset=\"https:\/\/increasec.com\/wp-content\/uploads\/2021\/08\/image.png 923w, https:\/\/increasec.com\/wp-content\/uploads\/2021\/08\/image-300x251.png 300w, https:\/\/increasec.com\/wp-content\/uploads\/2021\/08\/image-768x642.png 768w\" sizes=\"auto, (max-width: 923px) 100vw, 923px\" \/><\/figure>\n\n\n\n<p><br><\/p>\n\n\n\n<p>Note:  If you create Overlapping policies (i created block access outside Canada + USA   and Enforce 2FA outside Canada) the LEAST RESTRICTIVE takes precedence.  so in my test I got a 2FA prompt when trying to logon from South America.  Don&#8217;t be fooled into thinking that the rules take effect in listed order.<\/p>\n\n\n\n<p>Why not just set everywhere to Enforce 2FA?   Then your users may be bombarded with 2FA requests<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Note: Legacy protocols like POP, SMTP, IMAP, and MAPI can&#8217;t enforce MFA   <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/conditional-access\/block-legacy-authentication\">Source<\/a>    A Conditional access policy is also required to turn those off.  remember to exempt your trusted sites so they can scan-to-email from a printer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Requires:1 mgt account with P1 license $8\/mother user can be a basic user license Login as mgt account Set Named Locations https:\/\/aad.portal.azure.com\/#blade\/Microsoft_AAD_IAM\/SecurityMenuBlade\/NamedLocationsyou will need a named location for each country&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1625","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/1625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1625"}],"version-history":[{"count":4,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/1625\/revisions"}],"predecessor-version":[{"id":1770,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/1625\/revisions\/1770"}],"wp:attachment":[{"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}