简体   繁体   中英

Microsoft Graph API for Azure AD B2C

I am trying to access MS Graph API for updating user details. 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')

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" } } }

Updating by objectid is not an option and we need to use the custom attribute.

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')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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