Share via

Getting "code": "UnknownError" in https://graph.microsoft.com/v1.0/me

Yaswanth Randhi 0 Reputation points
2024-02-02T06:07:10.6466667+00:00

curl --location 'https://graph.microsoft.com/v1.0/me'
--header 'Authorization: Bearer EwB4A8l6BAAUs5+HQn0N+h2FxWzLS31ZgQVuHsYAAec9FthYSif2bMs0y7buA2IVZeW98sLcciEY5Qk7JLWyyevSsA0hLVenSsXCIeeQ5pb9WwoHtw92Pcybxtx5Kzhfh9l7rIMP38qau1nXmODYJMJDhSPERvlyA4iUIptalG5ydhmXQ2m380Juf6Rhm1sEQQaxffpClRKbhSPF4CKNSL59xjnn+/yTCmKhrjD4hhPmaF/u+pKFIJPew6WUwDDsWA+x77A0qkiRWiCaWA+vl8RMu8cE5FixBm60VeRlBkmiFXkUYM8cN8DuDFp4qlLKsZfZ71BBAZDymTYlvYqcjZKhaDEWeyGUx+qenxD50PdUsgQFkssAbwc9IbJwfVADZgAACFTlBG00Ew7aSAJmDmt9tHuexFKbezR4RvuyvQGnWqLbKE5dIOkD/m205wmPEpRgYYutHYGKy7xaWSQ4i8xjZ9puf5LB3UYx2ICWcYphOpshZlro1jPsdXmrZi2wBV7hrU0RTzAhtqu6IuZrg/vXB0NO6TvPpeMejcWo70vnWRJELOGnTvOq/Ag9hFjf3jlWXO+gTT5NSj0xM0w+IJPqRCRl+nlCCdjAT2pH304XgPgYF6kUrwd77wb0z2JhFPnBj5XQUzZewjo4sYbtbl7tIuATLYdQSG06QFukgOX4uynM6WygqQtqk9FsDhWNGUvjurMylA2VSX4wHa5t5FhOSlZtqYkujD8bnshpuQzi4+6efL4DfZW8fUCFtKdkkWSYO61OlRrHAwRLk+gAyPx96ypor2N2fyLlLdQxa8zNlN8d3/XM50sQQdE7PetZIWxPZTGtoqoqkqswCFoDqict6GoQDENNSu6XVXyOHVLXOFW6GxmLKXr0SM7LhxA+3XDPV9byX9Pfc4iwZhYYIV0oKdHG0RL7pvFqMCwdM2NFh5j1ULbcfpkm/s6cBShibxJo0OR9vm0Fk6ny37eHIYo2F15Fup9pAS8QPtq4Qgod+UFRquonDkYpjx4/e6EnH2MoaoOEW5+0NxXSPtP3YK8PVUQue+pMgGa5ytOsjqmlirdVbEImBev/EQLEQcZNedqZCupRrVAt5qvT3AGmEqJZrPN8Eukw2TZqDQ5P6cyOo5qrokqQlu0kvJMNkXdJQDJ4IaLvA7OYiHVaAk+MRWTDyydxmI4C'

Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,456 Reputation points
    2024-02-02T07:07:48.79+00:00

    Hi @Yaswanth Randhi

    Is this personal user token something you just obtained? Please make sure it is valid and not expired. In addition, you also need to ensure that it has the necessary permissions. If you are trying to get the information of the logged-in user, then the user needs to consent to the User.Read permission when logging in.

    For testing, you can use personal account to log in to Graph Explorer and call the /me endpoint to see if it can return the correct result.

    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.

    Was this answer helpful?


Your answer

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