Updates the user "message": "You are not authorized to perform this action.",
Options
Bortyk
✭✭
curl https://api.smartsheet.com/2.0/users/{userId} \ -H "Authorization: Bearer XXXXXXX" \ -H "Content-Type: application/json" \ -X PUT \ -d '{ "admin": true, "licensedSheetCreator": true, "firstName": "Jane", "lastName": "Doe"} '
"message": "You are not authorized to perform this action.",
Why can't I change my name?
I use my id.
All other requests run without problems.
scope: 'ADMIN_SHEETS ADMIN_USERS READ_SHEETS READ_USERS READ_CONTACTS WRITE_SHEETS ADMIN_WEBHOOKS'
Answers
-
Hi @Bortyk
As a System Admin, I was able to update my name using the API call you outlined above. Can you test to see if you can change your name from within the App in the UI?
If you're not a System Admin, you may need to remove out some of the other permissions you're looking to set, other than the name. Try JUST the name:
curl https://api.smartsheet.com/2.0/users/{userId} \ -H "Authorization: Bearer XXXXXXX" \ -H "Content-Type: application/json" \ -X PUT \ -d '{ "firstName": "Jane", "lastName": "Doe"}
Cheers,
Genevieve