- If you want to query Exchange mailbox, its attributes related info then you can use Exchange Powershell to query. Here's the documentation. In case if you want to add the folder level permissions for users in mailboxes then you can use Exchange Powershell and Add-MailboxFolderPermission
cmdlet. Here's the documentation. - If you want to get the mailbox usage then you can Microsoft Graph API reports. Here's the documentation.
Get Exchange online public mailbox owner via Microsoft Graph API

Eric Chen
21
Reputation points
Hello,
I'm using Microsoft Graph API for retrieving kinds of info from office365 for audit purpose.
The current task is get received mailbox usage of certain mailboxes which is Plan2,
by using below API successfully:
GET https://graph.microsoft.com/v1.0/users/$user.UPN/messages/
but, we need more info about those public mailboxes, like who is the Owner of this certain public Exchange Online Plan2 mailbox.
Could I get it from the Microsoft Graph API as well?
@Eric Chen
As threads with tag "office-online-server-exchange" focus on general issues of Office Online Server with Exchange Server, but your issue is more about API. So I would remove this tag,
Thanks for your understanding.
Hi SahshiSahlaj,
Some of public mailboxes, using for sendind or receiving public messages, maintained by other owner,
the relevent info should be gotten from below remote powershell command,
but I need to clarify is that must to use exchangeonline powershell command rather than GraphAPI.
Get-MailboxFolderPermission -Identity <Alias>
Updated:
Why I need the method via graph api, is that we could use the current certificate based authentication if via graph api,
otherwise I have to build another appliction via azure portal for exchangeonline powershell cmd running for certificate based authentication.
like followinig below guide, but I just found the exchage api permssion has been removed from azure portal,
So, my real question come to,
How could I connect-to ExchangeOnline by below certificate based by using exchangeonline powershell? (if the owner info could be got from Graph API.)
Connect-ExchangeOnline -AppId $AppId -CertificateThumbprint $CertificateThumbprint
https://blog.iotaker.jp/?p=776
Sign in to comment