I want to fetch folders using graph api.
URI for fetching folders: https://graph.microsoft.com/v1.0/me/mailFolders?$filter=displayName eq 'inbox' or displayName eq 'sent Items'
Reponse :
[{"error":{"code":"MailboxNotEnabledForRESTAPI","message":"The mailbox is either inactive, soft-deleted, or is hosted on-premise.","innerError":{"date":"2022-06-09T10:27:07","request-id":"xxx...","client-request-id":"xxx..."}}}]
Questions:
What could be the possible reason for this error?
Is there any alternate way that we can give the access from Azure ad portal through App set up?
Please tell us any possible solution, if possible.
Thanks!!!!