Share via

How can an Azure B2C user make a request to Microsoft Graph to retrieve other users' information? ​

Ralf 0 Reputation points
2023-11-22T16:17:02.6066667+00:00

Hello,

I have created an Azure web application (with React) that uses the Azure B2C service to handle user authentication. Now I would like users to be able to add other users (like a basic social network). So my application should display users' public information to each of them.

It seems that it is not possible for a user to be able to make a request directly to Microsoft Graph to retrieve information from other users.

What is the best way and the securiest to achive that ?

Thanks for your help.

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akash Jadav 85 Reputation points Microsoft External Staff
    2023-12-02T00:43:17.1466667+00:00

    Hi Ralf,

    You can create backend application for reading content of all users. Application Permissions needs to be provided to this app.

    You can try with creation of demo app as mentioned in documentation. Permissions Reference in MS Graph: https://learn.microsoft.com/en-us/graph/permissions-overview?tabs=http

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

    0 comments No comments

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.