Sign in to join the conversation:
I am hitting the users endpoint(https://api.smartsheet.com/2.0/users) to get all of our user information. I am trying to find out inactive users based on last login date. The API call doesn't return me the last login information for any user. I can see this information when I export the csv of the users from the admin console though. The sample response from the list API shows the last login information. Any thoughts on why I am not getting this info through an API call?
https://smartsheet-platform.github.io/api-docs/#list-users
For that request to have info on the last login for the users you'll need to make sure you are sending the request with a token from an account that is a System Admin. With that you can then use the include query string parameter set to a value of lastLogin. The example in the docs is using this query string. This will return a max of 100 user objects and you can use paging query string parameters to move through the pages of the results if needed.
The URL would look like this:
https://api.smartsheet.com/2.0/users?include=lastLogin
i did ran the following https://api.smartsheet.com/2.0/users?include=lastLogin but it gave me the same result with no lastLogin here is an example of the attributes that was returned
email :
name :
firstName :
lastName :
admin :
licensedSheetCreator :
groupAdmin :
resourceViewer :
jiraAdmin :
jiraUser :
salesforceAdmin :
id :
status :
sheetCount :
please let me know how to get lastLoging as part of the list user results in "https://smartsheet.redoc.ly/tag/users#operation/list-users"
Hi @Curibe
How many users do you have?
If you have more than 100, you must paginate your query to see lastLogin.
lastLogin.
Note also that this field won't appear if the user never logged in or if they did not login in the last 6 months.
Here's more information: https://smartsheet.redoc.ly/tag/users#operation/list-users
Cheers,
Genevieve
I have just recently found use cases where I needed Bridge. I created a sheet with unpivotted data. I have a love/hate relationship with the tool for now. I really like flexibility and power, what I don't like is how difficult it is to troubleshoot and in some ways manage the workflows. Seems to be some sensitive points…
raise HttpError(rex, "SSL handshake error, old CA bundle or old OpenSSL?") from rex smartsheet.exceptions.HttpError: (SSLError(MaxRetryError("HTTPSConnectionPool(host='api.smartsheet.com', port=443): Max retries exceeded with url: /2.0/sheets (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]…
Hi Guys I have created a code which will push the latest ticket from ServiceNow Platform into Smartsheet using the Smartsheet API. I am trying to use the POST method to push the row to Smartsheet but due to some reasons it is not getting inserted even if in the activity log it keeps showing as row inserted. When I tried to…