Loading...

Troubleshooting the Cloud Policy service - part 2

Troubleshooting the Cloud Policy service - part 2

Many customers have switched from Group Policy as a means for managing policies for Microsoft 365 Apps for enterprise on Windows devices, to the Cloud Policy service which allows administrators to configure policies for a large number of Microsoft 365 apps and services, including full support for Microsoft 365 Apps for enterprise on Windows as well as the other platforms, from a single administration experience.

 

To accomplish this, a supported application makes a “check-in” call, passing the user’s authentication token, to one of the 5 platform specific Cloud Policy service “check-in” APIs.  When the application receives a successful response, it processes the response and determines which policies in the response need to be enforced based on which policies that application supports.  If policies are configured for the user, the response will contain all the policies that are configured for that user, filtered by the supported platform.  As an example, if “VBA macro notifications” policy is configured for a user and an application calls the web API, the policy will not be included in the response as there are no web applications which support that policy.  If an application calls the Windows API, the policy will be included as some of the Office apps running on Windows support that policy.  But what if it doesn’t?  How are you able to troubleshoot the various APIs to ensure they are providing the policies you configured for your users?

 

The original troubleshooting article was written when the Cloud Policy service only supported Microsoft 365 Apps for enterprise running on Windows.  While this information is still useful for that scenario, especially for the information regarding how Cloud Policy uses the registry, you may want to call the check-in APIs directly so you can review the responses that are being provided to the applications that call the service.

 

Important: Policy configurations in the Cloud Policy service are targeted to users using group membership.  To call the “check-in” APIs you will need to sign in as the user you wish to examine the policy response for.  It is recommended when troubleshooting to start with a user account that is properly receiving policies.  This will help you confirm that you are performing the correct steps and can inspect the policy response before you perform these steps with a user account that you believe is having an issue.

 

First: Get the Authorization Token for the user account you wish to troubleshoot

Note: This requires the user account to be authenticated.

 

  • Open a private browser session.
  • Go to - https://feedbackportal.microsoft.com/feedback but do not sign in.
    • FYI - You can use any site that uses Entra ID for authentication.
  • Open the browser’s developer tools.
    • In developer tools, open the Network tab.

      ChrisHopkins_0-1700609399582.png

       

       ChrisHopkins_1-1700609399587.png

       



  • Sign in @ https://feedbackportal.microsoft.com/feedback with the user account you wish to troubleshoot with.
  • In the left pane you will see a bunch of traffic.  Scroll or search for the “policies” item and click on it.  This is the HTTP request to the Cloud Policy service.

If you look at the Headers tab, you can see a few important pieces of information:

  • The status code tells you that the call was successful or not.
  • The checkin-interval tells the calling applications how long to wait before calling again.
  • The authorization value is the user’s authentication token.

 

ChrisHopkins_2-1700609399608.png

 

Click on the Response tab and you will see the details for all the policies that are targeted to the user which are supported on that platform.

ChrisHopkins_3-1700609399621.png

 

  • Go to the Header tab and copy the Authorization value.  Do not copy the term ‘bearer’ and be careful not to include any leading or trailing spaces.

ChrisHopkins_4-1700609399638.png

Second: Call the check-in APIs directly

In this example I am going to use Postman to help me make the API calls and inspect the responses.

  • Paste the API URL into the HTTP Request and make sure the request type is set to GET

    ChrisHopkins_5-1700609399639.png

     

  • Add two additional headers
    • device-name
    • sdk-version

You need to provide a value for each but it is not important what you set the value to for troubleshooting.  I always use ‘test’ as the value for both.

ChrisHopkins_6-1700609399647.png

 

  • Go to the Auth tab, select the Type as Bearer Token and paste in the token you copied from the steps above.

ChrisHopkins_7-1700609399654.png

 

  • Click Send to send the HTTP request.
    ChrisHopkins_8-1700609399655.png

     

  • Now you can inspect the response.

You can see in the example below that the status code is 200 which means the call completed and the user has policies targeted to them.  Another common successful response is 204 which means that the call completed but the user does not have any policies configured for them that are supported on that platform.

 

ChrisHopkins_9-1700609399667.png

 

Third: Keep in mind

Multiple policy configurations can be targeted to multiple groups and conflicting policy settings are managed by the priority values, so make sure you have reviewed the user’s group memberships before troubleshooting.  Also keep in mind some policy configurations may apply to all users on the tenant no matter their group membership.

 

The Cloud Policy service uses a cache on the service side to improve performance for multiple calls for the same user from multiple applications.  This cache is maintained for 90 minutes.  Keep this in mind when troubleshooting as any changes you make to policy configurations may be delayed for up to 90 minutes depending on the calling pattern for that user.

 

How to contact us

 

Continue the conversation by joining us in the Microsoft 365 Tech Community! Whether you have product questions or just want to stay informed with the latest updates on new releases, tools, and blogs, Microsoft 365 Tech Community is your go-to resource to stay connected!

 

Published on:

Learn more
Microsoft 365 Blog articles
Microsoft 365 Blog articles

Microsoft 365 Blog articles

Share post:

Related posts

Announcing the General Availability of the Microsoft 365 Document Collaboration Partner Program

Empowering Seamless Collaboration for Modern Workforces  We are thrilled to announce the general availability of the Microsoft 365 Docume...

1 year ago

Favorite Microsoft 365 Copilot Prompts

(Amber Plumb interviewing Michael Morales and Allison Sweet)  The power of M365 Copilot is transforming the way our support team operates...

1 year ago

Favorite Copilot Prompts

(Amber Plumb interviewing Michael Morales and Allison Sweet)  The power of M365 Copilot is transforming the way our support team operates...

1 year ago

Boost digital event engagement with Voting and Archiving in Teams Q&A

Managing and delivering effective town halls is key to enabling two-way dialogue with leaders in today’s hybrid world. Microsoft Teams Q&A...

1 year ago

Prepare now for key end of support moments in 2025

One year from today, on October 14, 2025, support will end for all Office 2016 and 2019 suites, standalone apps, and servers. This includes:&n...

1 year ago

Everything you should know about Visio 2016 and Visio 2019 end of support

On October 14, 2025, Visio 2016 and Visio 2019 will reach end of support. After this date, Visio 2016 and Visio 2019 will no longer receive se...

1 year ago

Limit frontline worker access to Teams when off shift

We’re excited to announce that the frontline working time feature is now generally available! This feature allows admins to block or warn acce...

1 year ago

We are removing Feed on Microsoft 365 (Office)

As part of our ongoing efforts to streamline and enhance user experiences, we will be retiring the Feed feature (shown in figure 1 below) on t...

1 year ago

NOW ON DEMAND | Microsoft Loop Learning Series [Six webinars]

UPDATE | All parts of the Loop Learning Series have aired and are now available to watch on demand, playable below in this blog post.  Ar...

1 year ago

Leveraging Partner Apps to Deliver on the Promise of AI-Led Productivity

The advent of generative AI is driving a rethink of what outcomes we deserve from our productivity software – from gains in efficiency to more...

1 year ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.