Search code examples
microsoft-graph-apioutlook-restapiews-managed-api

How to get in-place archive custom folder name on office 365?


GET mailFolders/archivemsgfolderroot

I use distinguish name to get this in-place mailbox folder and the response is:

...
"displayName": "Top of Information Store",
...

However, this is not the custom name I modified on office365. Is it possible to get that custom name?

I also try to get distinguish folder in EWS managed API

<t:DistinguishedFolderId Id="archivemsgfolderroot" />

It returns the same name

...
<t:DisplayName>Top of Information Store</t:DisplayName>
...

--

Add two image ref.

how I add it

how it looks like at outlook

thanks for help


Solution

  • I see that a user can set a property, "ArchiveName", to give their archive mailbox a custom name. In powershell, this would be using a Set-Mailbox cmdlet. https://learn.microsoft.com/en-us/powershell/module/exchange/mailboxes/set-mailbox?view=exchange-ps

    That doc states that it applies to Outlook and OWA and, after a quick look, I can't see a way to get that property other than using Get-Mailbox which is not ideal. So as best I can tell it's not exposed through EWS or REST and thus probably isn't available through Microsoft Graph.

    I would encourage you to file a suggestion: https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback/category/101632-microsoft-graph-o365-rest-apis