如何重置 API 权限 Microsoft Graph [英] How to reset API permissions Microsoft Graph
问题描述
我正在使用 Microsoft Graph 开发一些东西.起初,只是给予一些许可.但我发现这还不够.我添加了更多权限.但它似乎不起作用.因为我登录后,授权网不出来
我正在按照步骤
通过 url 请求强制用户同意
https://login.microsoftonline.com/{tenant}/oauth2/authorize?client_id={your_client_id}&response_type=代码&response_mode=查询&resource=https://graph.microsoft.com&状态=12345&提示=同意
请参阅本文档 了解更多详情.
I'm developing something using Microsoft Graph. At first, just some permission is given. But I found it's not enough. I added more permission. But it seems it's not working. Because after I log in, the Authorization web doesn't come out
I'm following the steps here to use Microsoft Graph. and I'm using ADv1
I've added "User.ReadBasic.All".
I'm trying to get information by "/users?$select=displayName,userPrincipalName". The error is as below
BotFrameworkAdapter.processActivity(): 500 ERROR - [object Object]
botFrameworkAdapter.ts:607
(node:1752) UnhandledPromiseRejectionWarning: Error: [object Object]
at BotFrameworkAdapter.processActivity (c:UsersXXXXXXsrcotFrameworkAdapter.ts:608:19)
at process._tickCallback (internal/process/next_tick.js:68:7)
warning.js:18
(node:1752) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
warning.js:18
(node:1752) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
After updating the permissions, users and/or admins will have to consent again.
Click 'Grant admin consent for XXX' to grant admin consent.
Force user consent through a url request
https://login.microsoftonline.com/{tenant}/oauth2/authorize?
client_id={your_client_id}
&response_type=code
&response_mode=query
&resource=https://graph.microsoft.com
&state=12345
&prompt=consent
Refer to this document for more details.
这篇关于如何重置 API 权限 Microsoft Graph的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!