How to get user data from another microsoft teams user as administrator in microsoft graph

Andrei Castro 0 Reputation points
2024-05-22T02:47:59.64+00:00

is it possible to get another user's data from microsoft graph as an administrator? like their chats, emails and basic info?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,125 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 1,405 Reputation points Microsoft Vendor
    2024-05-22T05:29:24.8866667+00:00

    Hi @Andrei Castro

    You can use the administrator status to get the basic information and emails of other users, it is important to note that you need to grant the appropriate permissions, but you cannot get the chats.

    For user information, please refer to this document. Here are my test results.

    Screenshot 2024-05-22 132334

    When you get another user's mailbox, you need that user to grant you access or share the mailbox with you.

    Screenshot 2024-05-22 132714 More information about to get another user's mailbox:

    https://learn.microsoft.com/en-us/graph/api/message-get?view=graph-rest-1.0&tabs=http

    https://learn.microsoft.com/en-us/graph/outlook-share-messages-folders

    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.

    0 comments No comments