Named Locations and Terms of Use
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② When every section has a ✓, tap Complete lesson.
0 of 9 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Module: Implement Authentication and Access Management
Lesson: Named Locations and Terms of Use
Introduction: The Context of Modern Access Control
In the modern landscape of identity and access management, the perimeter of a network is no longer defined by a physical office wall or a firewall. With the shift toward remote work, cloud infrastructure, and mobile-first productivity, the traditional concept of "trusted networks" has become increasingly fragile. Organizations can no longer rely on simple IP-based access controls to secure their resources. Instead, we must adopt a more nuanced approach—one that evaluates the context of every login attempt.
This is where Conditional Access policies come into play. Conditional Access is the engine that evaluates the "who, what, where, and how" of a sign-in request before granting access to an application or data. Within this engine, two specific components—Named Locations and Terms of Use—serve as critical gatekeepers. Named Locations allow us to define network boundaries based on IP addresses, geographical regions, or GPS coordinates, while Terms of Use provide a legal and compliance layer that users must acknowledge before proceeding. Together, they allow administrators to build a security posture that is both flexible enough to support modern work and rigid enough to prevent unauthorized access.
Understanding how to plan, implement, and administer these tools is essential for any IT professional tasked with securing cloud identities. Without them, you are essentially leaving the front door open to anyone who happens to have a password. By mastering these features, you can ensure that your organization’s security policies are not just theoretical, but actively enforced at the moment of authentication.
Not read yet
Understanding Named Locations
Named Locations are logical groupings of network addresses, countries, or regions that you define within your identity provider. By assigning a name to these ranges—such as "Corporate HQ," "Branch Office," or "High-Risk Countries"—you can write policies that behave differently depending on where the user is physically or digitally located.
The Mechanics of Network Locations
When a user attempts to sign in, the identity provider inspects the source IP address of the request. If that IP address falls within a range you have defined as a "Named Location," the system tags the request accordingly. You can then use this tag as a condition in your Conditional Access policies. For example, you might grant access to sensitive financial records only if the user is connecting from the "Corporate HQ" named location, while requiring multi-factor authentication (MFA) for anyone accessing those same records from a "Trusted Home Network."
Callout: Trusted vs. Untrusted Locations It is important to distinguish between "Trusted" and "Untrusted" locations. A Trusted Location is a range of IP addresses that you have explicitly identified as secure, such as your office building’s public-facing IP range. By marking these as "Trusted," you can bypass MFA requirements for users signing in from these locations, assuming the risk is perceived to be lower. Conversely, untrusted locations are everything else, which should generally trigger more stringent security requirements.
Types of Named Locations
There are generally two ways to define these locations:
- IP Address Ranges: This is the most common method. You define a list of IPv4 or IPv6 ranges (in CIDR notation) that represent your physical offices or specific VPN gateways. This is highly accurate but requires administrative overhead to keep the lists updated as your ISP or office infrastructure changes.
- Countries/Regions: This method allows you to block or allow access based on the country of origin derived from the user's IP. While easier to manage, it is less precise. IP-to-geography databases are not always 100% accurate, and attackers can easily bypass this using VPNs or proxy servers.
Best Practices for Managing Named Locations
Managing IP ranges can become a nightmare if not handled correctly. Here are some industry-standard practices:
- Audit Regularly: Your office IP addresses change. Ensure you have a process to verify that your "Corporate" named location still matches the actual public IP addresses being used by your internet service providers.
- Use Descriptive Names: Avoid generic names like "Location 1." Use clear, identifiable names like "New York HQ" or "London Branch Office." This makes troubleshooting significantly easier when a user reports an access issue.
- Avoid Over-Trusting: Do not mark VPN gateways as trusted locations unless you are certain that the VPN itself requires strong authentication. If an attacker compromises your VPN, they effectively inherit the "trusted" status, bypassing your MFA requirements.
Not read yet
Implementing Terms of Use (ToU)
While Named Locations focus on the environment of the access request, Terms of Use focus on the legal and policy compliance of the user. Terms of Use are essentially legal documents or policy statements that users must read and accept before they are granted access to your organization's resources.
Why Terms of Use Matter
In many industries, regulatory compliance mandates that organizations inform users of their responsibilities. For example, a healthcare organization might need to remind employees of HIPAA regulations, or a financial firm might need to display a non-disclosure agreement (NDA) before a contractor accesses sensitive market data. Terms of Use provide a verifiable audit trail showing that the user acknowledged these policies.
How Terms of Use Work
Terms of Use are implemented as a blocking condition. When a user tries to sign in to an application, the identity provider checks if the user has already accepted the current version of the Terms of Use. If they have not, the sign-in process is interrupted. A browser window or a mobile prompt appears, displaying the document, and the user must click "Accept" to proceed. If they decline, access is denied.
Step-by-Step: Implementing a Terms of Use Policy
- Create the Document: Prepare your policy in a PDF format. Keep it concise. Users are unlikely to read a 50-page document during a login flow; aim for a summary that highlights the most critical points.
- Configure in the Identity Portal: Navigate to your Conditional Access or Identity Protection dashboard. Look for the "Terms of Use" section.
- Upload and Set Parameters: Upload your PDF. You can configure options such as:
- Require users to expand the terms: Ensures they at least scroll through the document before clicking accept.
- Require users to provide consent on every device: Forces the user to accept on every new device they use.
- Expiration: You can set the terms to expire, forcing users to re-accept them on a recurring basis (e.g., annually).
- Link to Conditional Access: The Terms of Use object itself does nothing until it is linked to a Conditional Access policy. You must create a policy that targets specific users or apps and selects the "Terms of Use" as a "Grant" control.
Warning: The "Click-Through" Trap Do not assume that just because a user clicked "Accept," they have read and understood the policy. Terms of Use are primarily for legal compliance and establishing "informed consent." Always pair these with actual security training and organizational communication to ensure users truly understand their obligations.
Not read yet
Practical Implementation: A Scenario-Based Approach
Let's walk through a common scenario: Protecting a sensitive HR portal. We want to ensure that only employees in the office can access it, and if they do, they must accept a specific HR policy document.
Step 1: Defining the Named Location
First, we define our corporate office range.
- Go to the Conditional Access > Named Locations blade.
- Select "New location."
- Name it "Corporate Office."
- Enter the CIDR range (e.g.,
192.0.2.0/24). - Check the box labeled "Mark as trusted location."
Step 2: Creating the Terms of Use
Next, we prepare the HR document.
- Go to the Terms of Use blade.
- Click "New terms."
- Upload your
HR_Policy_2024.pdf. - Set the "Display name" to "HR Portal Access Policy."
- Enable "Require users to expand the terms" to ensure they see the content.
Step 3: Building the Conditional Access Policy
Now, we tie them together.
- Create a new Conditional Access policy titled "HR Portal Security."
- Assignments: Select the HR application under "Cloud apps or actions."
- Conditions: Under "Locations," select "Any location" but exclude "Corporate Office." This means the policy will apply to everyone outside the office.
- Grant: Select "Grant access," but then choose "Require Terms of Use" and select the "HR Portal Access Policy."
- Enable: Set to "On" and save.
This setup ensures that if someone tries to access the HR portal from home, they are blocked or forced to accept the policy, depending on how you configure the "Grant" settings. If you want to be even stricter, you could configure the policy to only allow access if the user is in the "Corporate Office" location.
Not read yet
Code-Based Configuration (Graph API)
While the GUI is great for quick setups, large-scale organizations often automate these tasks using the Microsoft Graph API. This ensures consistency and allows for version control of your security policies.
Below is an example of how you might define a named location using a JSON payload via the Graph API.
// Example JSON payload for creating a named location
{
"@odata.type": "#microsoft.graph.ipNamedLocation",
"displayName": "Corporate Office",
"isTrusted": true,
"ipRanges": [
{
"@odata.type": "#microsoft.graph.iPv4CidrRange",
"cidrAddress": "192.0.2.0/24"
}
]
}
Explanation of the Payload:
@odata.type: Specifies the resource type for the Graph API, identifying this as an IP-based named location.displayName: The identifier you will see in your management console.isTrusted: A boolean that tells the Conditional Access engine whether to treat this location as a trusted source for MFA bypass.ipRanges: An array of CIDR objects, allowing you to define multiple subnets within a single named location.
When automating these deployments, always ensure that your script includes a "dry run" or "audit" phase. You do not want to push a policy that blocks all authentication because of a typo in an IP range.
Not read yet
Best Practices for Administration and Maintenance
Administering these features is not a "set it and forget it" task. As your network grows and your organization evolves, so must your policies.
1. The Principle of Least Privilege
Do not apply your strictest policies to everyone immediately. Start with a pilot group. Use the "Report-only" mode in Conditional Access to see how your policies would affect users before they actually go live. This allows you to identify legitimate users who might be blocked by a misconfigured Named Location.
2. Managing IP Range Decay
IP addresses are dynamic. If your office moves, or if your internet provider changes your IP block, your policies will break. Create a recurring calendar reminder every six months to review your "Trusted Locations." Ensure that the IP ranges currently in use by your offices match what is configured in your portal.
3. Versioning Terms of Use
When you update your Terms of Use, do not just overwrite the old document. Create a new version. This allows you to track which users have accepted which version of the policy. If you make a significant change to your HR policy, you may want to force all users to re-accept it. The Terms of Use feature allows you to "re-require consent" for existing users, which is a powerful tool for compliance.
4. Monitoring and Reporting
Use the Sign-in logs to troubleshoot. If a user complains about access, look at their specific sign-in attempt. The log will explicitly state which Conditional Access policy was applied, whether it succeeded or failed, and whether it was triggered by a location or a Terms of Use requirement.
Tip: The "Break-Glass" Account Always maintain at least two "break-glass" accounts—highly privileged, cloud-only accounts that are excluded from your most restrictive Conditional Access policies. If you accidentally lock yourself out by misconfiguring a Named Location or a Terms of Use requirement, these accounts will be your only way back into the system.
Not read yet
Common Pitfalls and How to Avoid Them
Even experienced administrators fall into traps with Conditional Access. Here are the most frequent mistakes:
- The "Lockout" Mistake: Applying a policy that requires a specific named location to all users, including the administrators. If the admin is working from home and the office IP is the only one allowed, the admin is immediately locked out. Always exclude your admin group from such policies or ensure you have a trusted remote location defined.
- Ignoring IPv6: Many administrators define IPv4 ranges but forget IPv6. Modern devices and ISPs often default to IPv6. If your policy is looking for an IPv4 address that isn't there, the user might be treated as coming from an "Unknown" location, potentially triggering a block.
- Confusing "Exclude" and "Include": Conditional Access logic can be counter-intuitive. An "Exclude" in one policy does not necessarily override an "Include" in another. If a user is caught by any policy that requires MFA, they must perform MFA. Be very careful with how you layer these policies.
- Poorly Defined Terms of Use: If your Terms of Use are too long, users will simply click "Accept" without reading. This defeats the legal purpose of the document. Keep it short, focused, and readable.
Not read yet
Quick Reference: Conditional Access Components
| Feature | Primary Purpose | Best Used For |
|---|---|---|
| Named Locations | Network context | Defining office vs. remote vs. high-risk zones |
| Terms of Use | Legal compliance | HR policies, NDAs, and usage agreements |
| MFA Requirements | Identity verification | High-risk access and external connections |
| Device Compliance | Security posture | Ensuring laptops are encrypted and patched |
FAQ: Common Questions
Q: Can I use multiple Named Locations in one policy? A: Yes. You can select multiple named locations in the "Conditions" section of a Conditional Access policy. The policy will trigger if the user's IP matches any of the selected locations.
Q: What happens if a user is roaming and their IP changes? A: Conditional Access evaluates the IP address at the time of the sign-in attempt. If a user moves from the office (Trusted) to a coffee shop (Untrusted) while they have an active session, the session might continue, but the next time they attempt a sensitive action or re-authenticate, the policy will be re-evaluated.
Q: Can I customize the look of the Terms of Use? A: You can customize the header and the logo, but the primary content is the PDF you upload. Ensure the PDF is professional and formatted for mobile devices, as many users will be viewing it on smartphones.
Q: Does Terms of Use work for guest users? A: Yes. Terms of Use can be applied to guest accounts (B2B). This is highly recommended if you are inviting external consultants into your environment, as it ensures they agree to your security standards before accessing your data.
Not read yet
Conclusion and Key Takeaways
Implementing Named Locations and Terms of Use is a fundamental step in moving toward a Zero Trust security model. By moving away from the assumption that a password is enough, you create a dynamic, context-aware environment that protects your organization’s data regardless of where your users are located.
Key Takeaways:
- Context is King: Always evaluate the source of an authentication request. Named Locations allow you to distinguish between safe, known environments and potentially risky, unknown environments.
- Compliance as a Gatekeeper: Terms of Use are more than just legal paperwork; they are a functional security control that ensures users acknowledge their responsibilities before accessing sensitive data.
- Automation via API: For large-scale environments, use the Microsoft Graph API to manage your policies. This reduces human error and provides a clear, repeatable way to deploy security configurations.
- Test Before You Deploy: Always use "Report-only" mode or pilot groups. Never deploy a restrictive Conditional Access policy to your entire organization without first verifying that it won't cause mass lockouts.
- Maintain Your Infrastructure: IP addresses change, and policies become stale. Make the review of your Named Locations a part of your regular administrative maintenance cycle.
- Protect Your Admins: Always ensure that your administrative accounts are protected by a separate, highly secure policy and that you have "break-glass" accounts available in case of a configuration error.
- Think Beyond the Office: As remote work continues to be the norm, focus your energy on securing the "untrusted" locations. Assume the network is hostile and use Conditional Access to enforce MFA and device compliance for every request that doesn't originate from a known, trusted source.
By following these principles and carefully planning your implementation, you can build a robust, flexible, and secure access management system that serves your organization well into the future. Security is not a state of being, but a continuous process of evaluation and improvement; Named Locations and Terms of Use are two of the most powerful tools in your arsenal to achieve that.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
- Introduction to Microsoft Entra ID
- Introduction to Microsoft Entra ID Quiz5q
- Configure Tenant Settings
- Configure Tenant Settings Quiz5q
- Custom Domain Names
- Custom Domain Names Quiz5q
- Device Identity and Registration
- Device Identity and Registration Quiz5q
- Company Branding Configuration
- Company Branding Configuration Quiz5q
- Create and Manage User Accounts
- Create and Manage User Accounts Quiz5q
- Bulk User Operations
- Bulk User Operations Quiz5q
- Create and Manage Groups
- Create and Manage Groups Quiz5q
- Dynamic Group Membership
- Dynamic Group Membership Quiz5q
- Administrative Units
- Administrative Units Quiz5q
- License Assignment and Management
- License Assignment and Management Quiz5q
- External Collaboration Settings
- External Collaboration Settings Quiz5q
- Invite External Users
- Invite External Users Quiz5q
- B2B Collaboration and Direct Connect
- B2B Collaboration and Direct Connect Quiz5q
- Cross-Tenant Access Settings
- Cross-Tenant Access Settings Quiz5q
- Identity Provider Configuration
- Identity Provider Configuration Quiz5q
- Microsoft Entra Connect Overview
- Microsoft Entra Connect Overview Quiz5q
- Password Hash Synchronization
- Password Hash Synchronization Quiz5q
- Pass-Through Authentication
- Pass-Through Authentication Quiz5q
- Federation with AD FS
- Federation with AD FS Quiz5q
- Entra Connect Cloud Sync
- Entra Connect Cloud Sync Quiz5q
- Authentication Methods Overview
- Authentication Methods Overview Quiz5q
- Passwordless Authentication
- Passwordless Authentication Quiz5q
- Self-Service Password Reset
- Self-Service Password Reset Quiz5q
- Password Protection and Smart Lockout
- Password Protection and Smart Lockout Quiz5q
- FIDO2 Security Keys
- FIDO2 Security Keys Quiz5q
- Microsoft Authenticator App
- Microsoft Authenticator App Quiz5q
- Conditional Access Overview
- Conditional Access Overview Quiz5q
- Create Conditional Access Policies
- Create Conditional Access Policies Quiz5q
- Named Locations and Terms of Use
- Named Locations and Terms of Use Quiz5q
- Session Controls and App Controls
- Session Controls and App Controls Quiz5q
- Authentication Strength Policies
- Authentication Strength Policies Quiz5q
Spend your points to unlock exam-style practice questions
Spend points to unlock SC-300 exam-style practice questions.
Practice for SC-300