简体   繁体   English

Microsoft Graph API 用于 Azure AD B2C

[英]Microsoft Graph API for Azure AD B2C

I am trying to access MS Graph API for updating user details.我正在尝试访问 MS Graph API 以更新用户详细信息。 I am using below but the filter criteria doesn't seem to work PATCH https://graph.microsoft.com/v1.0/users?$filter=eq(extension_ce64b1571f694b84aeef256f85b7f49c_custom 'ABCD')我在下面使用,但过滤条件似乎不起作用 PATCH https://graph.microsoft.com/v1.0/users?$filter=eq(extension_ce64b1571f694b84aeef256f85b7f49c_custom 'ABCD')

I am getting below error.我收到以下错误。 { "error": { "code": "BadRequest", "message": "Invalid filter clause", "innerError": { "date": "2020-08-18T18:28:26", "request-id": "5bbdc288-02b5-4b80-9ef4-707c12b7af47" } } } { “error”:{ “code”:“BadRequest”, “message”:“无效的过滤器子句”, “innerError”:{ “date”:“2020-08-18T18:28:26”,“request-id” : "5bbdc288-02b5-4b80-9ef4-707c12b7af47" } } }

Updating by objectid is not an option and we need to use the custom attribute.通过 objectid 更新不是一个选项,我们需要使用自定义属性。

Please help.请帮忙。

The filter syntax in your request is incorrect.您请求中的过滤器语法不正确。 Please try below request which will fix your issue,请尝试以下请求,这将解决您的问题,

https://graph.microsoft.com/beta/users?$filter=(extension_f03e52a0a21349eebc055bbd0c920c0d_FavouriteSeason eq 'summer')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM