MS Graph Not Returning all Conditional Access Policies

Roger Seekell 96 Reputation points
2021-09-01T17:18:36.637+00:00

Using Graph Explorer and the MG PowerShell, when I List all Conditional Access Policies, I am missing one. It is always the same one (of course, it's the one I most want to manipulate with Graph). Why might it not be returning with the other 12? Should I put in a support ticket with Azure AD?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,689 questions
0 comments No comments
{count} votes

Accepted answer
  1. JamesTran-MSFT 36,461 Reputation points Microsoft Employee
    2021-09-01T18:56:17.9+00:00

    @Roger Seekell
    Thank you for your post! I was able to replicate your issue, and will post my findings along with a workaround below.

    Findings:

    Using the List policies Graph API - https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies/

    • I got an output of 10 Conditional Access Policies out of 11
    • I didn't find any distinct differences between the 10 CA policies and the 1. I enabled the policy and put it in report-only, but still wasn't able to get it using the List API.
      128393-image.png

    Workaround:
    In order to work around this issue, I used the Google Chrome and Microsoft Edge (Chromium) Developer Tool F12.

    • In order to get the ID of the CA policy, I went to Conditional Access within the Azure Portal, opened the Developer Tool, and selected the CA policy.
      128349-image.png
    • Once you selected your CA Policy and within your Dev Tool, look for an operation with a Gear Symbol and Policy ID:
      128402-image.png
    • Select the operation and select Preview to copy the Policy ID
      128403-image.png

    Using the Get conditionalAccessPolicy API - https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies/{id}

    • You can now get the CA policy that isn't populating with the List API and manipulate it as you see fit.
      128340-image.png

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.

    ----------

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful