Why is ' https://graph.microsoft.com/v1.0/me/contacts' giving 404 not found error?

Kaps 1 Reputation point
2022-02-21T07:15:48.55+00:00

Hi,

I have tried to call ' https://graph.microsoft.com/v1.0/me' api with access_token then I can succesfully ftech the detail of logged-in users but using the same access_token and calling ' https://graph.microsoft.com/v1.0/me/contacts' is giving 'resource not found error'. Can any one explain me the flow to solve the problem and how can i fetch contacts of logged-in-users?

176322-image.png

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,715 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sreeju Nair 11,621 Reputation points
    2022-02-21T08:16:59.147+00:00

    What are the scopes included in your access token

    https://learn.microsoft.com/en-us/graph/auth-v2-user?context=graph%2Fapi%2F1.0&view=graph-rest-1.0

    Please verify whether you are requesting Contacts.Read permission to read the contacts?

    0 comments No comments

  2. Shivam Dhiman 5,946 Reputation points
    2022-02-21T14:52:24.72+00:00

    Hi @Kaps ,

    I am able to replicate your issue in my tenant account.
    176428-error.png

    This error occurs when your account does not have required exchange license. Please verify whether your account has required licenses.

    To get the contacts you must have this permission
    176457-permissions.png

    Further you must have some stored contacts in your outlook.office.com/people as you can see here.

    176467-contacts.png

    Result

    176369-result.png

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

    0 comments No comments