Hi there. See:
https://learn.microsoft.com/en-us/graph/api/user-list-messages?view=graph-rest-1.0&tabs=http
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am using the delegation method, and authorized with the organization administrator account, the granted permissions are Mail.ReadBasic Mail.Read Mail.Read.Shared Mail.ReadWrite Mail.ReadWrite.Shared Mail.Send Mail.Send.Shared User.ReadBasic .All User.Read User.Read.All profile openid offline_access Calendars.Read DelegatedPermissionGrant.ReadWrite.All Directory.ReadWrite.All, however, after I get the token, I can only list the emails of the administrator, not the emails of the organization members ,what should I do?
Hi @春会 刀
You can list emails of other members of the organization in the application context.
Before that, you need to grant the Mail.ReadBasic.All
application permission to your app and grant admin consent, then use the daemon-based client credentials flow to obtain a token.
Call the api endpoint in Postman to list emails of other members:
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.