/users API throwing User not found.
Fetching all users using below API fetches all the users with status, ACTIVE, DECLINED, DEACTIVATED.
https://api.smartsheet.com/2.0/users
But when we try to fetch the single user using https://api.smartsheet.com/2.0/users/abc
If the user abc has status as DECLINED. It fails with error
{
"errorCode": 1020,
"message": "User not found.",
"refId": "la99qz"
}
Any other user with status ACTIVE or DEACTIVATED can be fetched by using the API.
Is this an expected behaviour?
Best Answer
-
Hi @amogha
Yes, this is expected because users that decline your account invitation are not members of your account (which means they cannot be fetched with Get User).
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Answers
-
Hi @amogha
Yes, this is expected because users that decline your account invitation are not members of your account (which means they cannot be fetched with Get User).
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 202 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives