Share via

Encoded Properties from Graph API objects

Mitchell Thatcher 1 Reputation point
2023-04-27T15:35:06.6633333+00:00

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 Security | Intune | Other
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mitchell Thatcher 1 Reputation point
    2023-04-27T16:19:39.58+00:00

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

    [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($inputString))
    

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.