Encoded Properties from Graph API objects

Mitchell Thatcher 1 Reputation point

I am using Graph API to pull many different Intune objects and use them for custom reporting. Currently I am focuses on a couple of specific examples within the AppConfiguration data types (#microsoft.graph.iosMobileAppConfiguration and #microsoft.graph.androidManagedStoreAppConfiguration specifically in this case).

These objects seem to be holding their configuration settings in an encoded format. the #microsoft.graph.androidManagedStoreAppConfiguration has property name "payloadJson" and #microsoft.graph.iosMobileAppConfiguration has "encodedSettingXml".

How are these properties encoded? I presume they are simply encoded to save network bandwidth, but is there any security concern with me decoding them? My report is focused on capturing the current state of our Intune Environment and note changes as they occur, so I need to be able to read these settings blobs in plain text if possible.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,105 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
3,680 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mitchell Thatcher 1 Reputation point

    Nevermind. I figured it out. For those coming after me. A simple Base64 decode works. Here is the code I used.