Conditional Access Policies

Reyes, Johnny@EDD 0 Reputation points
2026-12-01T18:50:51.51+00:00

Hello, I work for State of CA Employment Development Department. We have Visual Studio Pro 2022 with github subscriptions for developers. Everyone is able to open the app until they try to access from a different agency's network where we have 1 SQL Server being hosted. Everyone gets a "you cannot access this right now" message. How do i make a change to conditional access policies in the MS Entra Admin center? No one at EDD seems to know who our MS systems admin is..

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-12-01T18:51:48.84+00:00

    An authorized administrator should first identify the exact policy blocking the Visual Studio sign-in in Microsoft Entra sign-in logs, then change only that policy rather than broadly allowing the other agency’s network.

    1. Identify the blocking policy

    The message can result from a network restriction, but it can also indicate a device-compliance, application, or authentication requirement. The fact that it occurs on another agency’s network does not by itself establish the cause.

    1. Have an affected developer reproduce the failure.
    2. On the error page, select More Details and record:
      • Timestamp
      • Correlation ID
      • Sign-in error code
      • Application/resource name
        Do not post request IDs, correlation IDs, IP addresses, or account information publicly.
    3. An administrator with at least Reports Reader access should open the Microsoft Entra admin center.
    4. Go to Entra ID → Monitoring & health → Sign-in logs.
    5. Filter by the affected Username, Date, and preferably Correlation ID.
    6. Open the failed event and inspect:
      • Conditional Access: policy that failed
      • Troubleshooting and support: failure reason
      • Location: public source IP seen by Entra
      • Device Info: registration and compliance state
      • Resource/Audience: resource actually blocked

    Selecting the policy name opens its configuration for review. Error 53003/AADSTS53003, if shown, means BlockedByConditionalAccess. ^1^

    2. Make the network change only if the log confirms a location-based block

    Conditional Access evaluates the network’s public internet egress IP, not the workstation’s private address or the location of the SQL Server. Obtain the other agency’s stable public IPv4/IPv6 CIDR ranges from its network team.

    A Conditional Access Administrator or Global Administrator must perform the change. The Conditional Access Administrator role can manage Conditional Access capabilities. ^2^

    1. Go to Entra ID → Conditional Access → Named locations.
    2. Create an IP ranges location.
    3. Enter a descriptive name and the agency’s public CIDR ranges.
    4. Mark it Trusted only if EDD security governance considers that entire network trusted.
    5. Save the named location.
    6. Return to Conditional Access → Policies and open the policy identified in the sign-in event.
    7. Under Assignments → Network:
      • If the policy applies to Any network or location, add the new named location as an exclusion only if access from that network is approved.
      • If it blocks Selected networks and locations, correct its selected-location scope instead.
    8. Keep the exception limited to the necessary users and resources; do not disable Conditional Access tenant-wide.

    Named locations are managed under that path, support public IPv4/IPv6 ranges, and can be included in or excluded from policies. ^3^

    3. Test safely before enforcing the change

    Do not experiment directly on the active policy.

    1. Duplicate the policy.
    2. Apply the proposed network change to the duplicate.
    3. Set Enable policy to Report-only.
    4. Test with a small developer group from both EDD and the other agency’s network.
    5. Review the resulting sign-ins under the Conditional Access and Report-only tabs.
    6. After confirming the expected results, update the enforced policy and remove the test copy.

    Report-only policies are evaluated and logged but do not enforce blocking or grant controls. Microsoft recommends copying an enforced policy, testing the proposed change in report-only mode, and comparing results before updating the enforced policy. ^4^

    If the failed policy instead reports device not compliant, device not domain joined, unapproved application, or an unmet MFA control, adding a named location will not necessarily fix it. The owner must adjust that specific requirement or bring the device/client into compliance.

    If no administrator can be located

    Check Entra ID → Roles and administrators for assignments to:

    • Global Administrator
    • Conditional Access Administrator
    • Security Administrator
    • Reports Reader

    A Reports Reader can investigate but cannot change the policy. If nobody with administrative access can update the tenant, open a Microsoft support request; Microsoft’s documented lockout procedure is to use another unblocked administrator or submit a support request when no administrator can update the policy. ^1^


    References

    1. Troubleshoot sign-in problems with Conditional Access
    2. Microsoft Entra built-in roles
    3. Conditional Access: Network assignment
    4. Analyze Conditional Access Policy Impact
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.