You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!