Bulk Update User api giving 401 error when the authentication type is OAuth 2.0
Summary:
We are tying to deactivate users using Bulk Update User API, but it is giving 401 error when the authentication type is OAuth 2.0
https://companyname.bigmachines.com/rest/v14/users/actions/bulkUpdate
Request
{ "userData": { "status": { "value": 0 } }, "criteria": { "q": "{'email' :{'$like':'%useremail%'}}" }}
Response
{ "error_description": "You are not authorized to access this page.", "error_uri": "HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "error": "You are not authorized to access this page."
We thought the Oauth user is missing User administrator permissions & we tried giving permission for this user from backend using api. we are getting the below error.
Tagged:
0