I want to be able to get all user's office365 photos within Azure Active directory.
Right now I'm able to get the current user's email using graph SDK
GraphServiceClient graphClient = SDKHelper.GetAuthenticatedClient();
public async Task<string> GetMyEmailAddress(GraphServiceClient graphClient)
{
User me = await graphClient.Me.Request().Select("mail,userPrincipalName").GetAsync();
return me.Mail ?? me.UserPrincipalName;
}
But I'm not sure how to integrate the the getting photos part from https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/profilephoto_get into the code.
Any help or code example is appreciated!!