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
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives