Getting 403 Forbidden while updating user PUT /users/USER_ID
Hi,
I am working on Box API 2.0 and integrating USER object in my integration scenario.
I am trying to update user PUT /users/USER_ID docs update-users but getting error 403 Forbidden, please find the request snippet below:
{ "notify": true, "enterprise":"Enterprise name", "name": "my user name", "login": "login-name.com", "language": "en", "timezone": "America/Los_Angeles", "is_password_reset_required": true }
All the values provided above are valid. below is the error response:
{ "type": "error", "status": 403, "code": "access_denied_insufficient_permissions", "help_url": "http://developers.box.com/docs/#errors", "message": "Access denied - insufficient permission", "request_id": "removed for privacy8234c5056e13g5" }
I have created access_token by using admin privileges, but still facing this issue. Please find the attached screen-shot for the access privileges of account while creating access_token.
Could you please suggest the possible solution on this?
Thanks.
-
Hello,
What value are you trying to update for the user?
Are you updating your own (logged in user) field by using URL end point "/users/me" OR updating some other user with As-User with URL end point "/users/"?
If you are using As-User then you should have your API key to be enabled for that using Box ticket. Please provide some more details if possible.
thanks,
Bibek
Please sign in to leave a comment.
Comments
6 comments