question

KiranKumarParupalli-1888 avatar image
0 Votes"
KiranKumarParupalli-1888 asked Deva-MSFT answered

Can we Impersonate one user account with another user account using Microsoft Graph API

We are looking for implementation of Impersonation to access authenticated user to have access to other user outlook. Can we achieve this using Microsoft Grpah API for office 365 accounts? Looking for samples codes.

microsoft-graph-mail
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Deva-MSFT avatar image
0 Votes"
Deva-MSFT answered

Yes, you can use OAuth 2.0 client credentials grant flow to authenticate and are configured with application permissions, which enable such apps to access all mailboxes in a organization on Exchange Online. You can try the following documentation which step-by-step information. For example, the Mail.Read application permission allows apps to read mail in all mailboxes without a signed-in user. Also administrators who want to limit the app access to a specific set of mailboxes can use the New-ApplicationAccessPolicy PowerShell cmdlet to configure access control. This article covers the basic steps to configure an application access policy.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.