How to get assistant name in Microsoft Graph API?

Austin 5 Reputation points
2023-10-02T07:47:33.7866667+00:00

I have a web app that uses OAuth and Microsoft Graph API to access user calendar data. My users have access to Assistant Name in Microsoft Outlook for desktop via contact card, but I cannot seem to find it in Microsoft Graph API. I believe it is the msExchAssistantName field which is an Exchange attribute.

I see this link but don't fully understand: https://techcommunity.microsoft.com/t5/microsoft-365/how-to-display-assistant-name-and-phone-in-m365-user-contact/m-p/3280011

How can I access this field in Microsoft Graph API?

Outlook
Outlook
A family of Microsoft email and calendar products.
4,504 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,490 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. BenjaminM-MSFT 75 Reputation points Microsoft External Staff
    2023-10-02T12:57:10.2166667+00:00

    Hi @Austin
    To get user Assistant Name, us the Contacts API (https://learn.microsoft.com/en-us/graph/api/contact-get?view=graph-rest-1.0&tabs=http):

    • On graph explorer, run the endpoint /users/{id | userPrincipalName}/contacts/{id} - remember to consent to the permissions under the "Modify Permissions" tab.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.