Sushmita Das
Sushmita Das

Reputation: 37

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.

Upvotes: 0

Views: 263

Answers (1)

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

Upvotes: 1

Related Questions