Hi @Mitul Dave
If you're trying to get the logged-in user's email information, then you need to grant your app one of the Mail.ReadBasic
, Mail.Read
or Mail.ReadWrite
delegated permissions and grant administrator or user consent for that permission.
Then use a delegated authentication flow to obtain an access token, such as the auth code flow or ROPC flow.
Finally call the List messages graph API endpoint to get the email of the logged in user:
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.