无法通过图形API资源管理器更新AAD应用程序设置

时间:2020-03-08 18:08:02

标签: azure azure-active-directory azure-ad-graph-api

我尝试通过Graph资源管理器更新Azure AAD应用程序设置,但收到错误消息MethodNotAllowed

https://developer.microsoft.com/en-us/graph/graph-explorer

enter image description here

我什至尝试了以下Microsoft官方document给出的示例,但仍然遇到相同的问题。

我试图从C#代码中调用 GraphAPI UpdateAsync(),但出现错误

请求中不允许使用指定的HTTP方法

发起请求时,即使遇到问题,我也已指定了PATCH。

更新

我尝试通过在AAD App object_id中传递Graph API url,如下所示,但仍然出现问题。

enter image description here

1 个答案:

答案 0 :(得分:0)

update application API不支持$filter表达式。

如果要按ID提取应用程序,则需要将list applications API与{{1}}查询表达式一起使用。

例如:

enter image description here

然后,使用update application API对其进行更新:

enter image description here