对于我的仪表板之一,我想向用户展示他们的个人资料图片,因为明显的个性化原因,并提供给他们改变它的可能性。
Microsoft Docs站点上的大多数博客文章和文章都列出了我可以利用的各种端点来获取这些数据,但我只是无法通过简单的postman调用来使其工作。由于我甚至得不到照片,我也不知道如何改变(更新)它。
以下端点不起作用:
GET https://graph.microsoft.com/beta/users/{id}/photo/$value
GET https://graph.microsoft.com/beta/users/{id}/photo
GET https://g
我已经知道在v1.0中使用postman和代码库调用microsft图形API。问:如何使用java通过邮递员和代码库调用microsoft graph beta api for beta版本。
有很多与v1.0相关的文章,但我没有找到任何与测试版相关的文章。我认为,我们可以使用自定义API调用来调用测试版API。请推荐或分享任何文章。
注意:我知道不推荐使用测试版API,但我正在做一些POC来测试它
我正在尝试根据Blazor客户端应用程序中检索到的访问令牌,从Microsoft的Graph API中检索用户组。 Index.razor.cs部分。 using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.WebAssembly.Authentication;
using System;
using System.Threading.Tasks;
using Microsoft.Graph;
using System.Net.Http.Headers;
using System.Linq;
当我调用Your access token has expired. Please renew it before submitting the request.端点时,我将得到https://graph.windows.net/myorganization/oauth2PermissionGrants?api-version=1.5。
为了避免任何愚蠢的问题--是的,我知道建议使用Microsoft Graph而不是Azure AD Graph。我知道而且我在用它。但是对于我目前的情况,我需要准确地请求Azure AD Graph。
测试用例:
我成功地登录了https://login.
我在Azure目录中注册了一个应用程序作为单个租户应用程序,根据Integration Assistant的说法,没有错误/警告。然而,当我尝试使用Graph Api客户端发送邮件时,我遇到了两个问题之一,这取决于我调用它的方式。 App.ts import AppAuthProvider from './AppAuthProvider';
import { Client } from '@microsoft/microsoft-graph-client';
import cookieParser from 'cookie-parser';
i