我正在使用MicrosoftGraph和使用此的OAuth2实现Microsoft Azure Active Directory身份验证。这是我的调用,它为我获取displayName、givenName、surName、邮件等。$graph = new Graph();
$user = $graph->createReque
我遇到的问题是,当没有头像的人注册时,API会将其视为错误。你最好自己去看看。How it looks when there is no profile picture on the MS account 当没有可显示的图片时,如何显示默认的个人资料图片?using System.Threading.Tasks;using Microsoft.Graph;
namespace BursaLicentel
我要检索我的Azure Active Directory中的所有用户及其个人资料照片。photo = await _graphServiceClient.Users[userId].Photo.Content.Request().GetAsync() 我知道在理论上可以定义所需的大小:MicrosoftGraphAPI - Get profile picture with defined size 现在我想知道如何在C#中做到这一点。