Updates the user "message": "You are not authorized to perform this action.",
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,
GenevieveNeed more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.7K Get Help
- 405 Global Discussions
- 216 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives