/users API throwing User not found.

Options
amogha
amogha
edited 03/25/24 in API & Developers

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

Answers