Using the List mailFolders or List childFolders APIs from Graph, I get back a MailFolder
object that has an id
property that represents the folder's unique ID. Here's an example:
"id": "AAMkAGUxZmVhZmQ5LWZmYzgtNDFiYy05NTgxLTcxOTA3OTY2ZTUyZAAuAAAAAADWewXmOP3rTYK4i34W6nCTAQDJBUrfh_-1Try-wjHqXpxrAAAAAAFZAAA=",
"displayName": "Archive"
When using PowerShell to get the same folder using Get-MailboxFolderStatistics
, the id
is returned in a different format.
FolderPath: /Archive
FolderId: LgAAAADWewXmOP3rTYK4i34W6nCTAQDJBUrfh+/1Try/wjHqXpxrAAAAAAFZAAAB
Is there a way to convert between these different representations of the same ID?
The problem I have is that I get the folder information (including ID) using Graph, but then I need to do something with that information that isn't currently supported by Graph (like getting folder permissions).
What I'd like to do is use the command below, but it only accepts the format returned by Get-MailboxFolderStatistics
:
Get-MailboxFolderPermission -Identity user@contoso.com:$($id)