Gets a list of users in the organization account. To filter by email, use the optional email query string parameter to specify a list of users' email addresses.
NOTE: If the API request is submitted by a system administrator, the following User object attributes are included in the response (else, they are omitted from the response):
NOTE: If the API request is submitted by a system administrator of an Enterprise account, and Custom Welcome Screen is enabled, the following User object attributes are included in the response (else, they are omitted from the response):
string Comma-separated list of email addresses on which to filter the results. | |
include | string If the API request is submitted by a system administrator and when specified with a value of 'lastLogin', response includes a lastLogin attribute for each user that indicates the Last login date/time of the user. Note If the number of users included in the response is > 100, you must paginate your query to see the lastLogin attribute. For large responses, the lastLogin attribute is never included. |
includeAll | boolean Default: false If true, include all results, that is, do not paginate. Mutually exclusive with page and pageSize (they are ignored if includeAll=true is specified). |
string or number When specified with a date and time value, response only includes the objects that are modified on or after the date and time specified. If you need to keep track of frequent changes, it may be more useful to use Get Sheet Version. | |
numericDates | boolean Default: false You can optionally choose to receive and send dates/times in numeric format, as milliseconds since the UNIX epoch (midnight on January 1, 1970 in UTC time), using the query string parameter numericDates with a value of true. This query parameter works for any API request. |
page | number Default: 1 Which page to return. Defaults to 1 if not specified. If you specify a value greater than the total number of pages, the last page of results is returned. |
pageSize | number Default: 100 The maximum number of items to return per page. Unless otherwise stated for a specific endpoint, defaults to 100. If only page is specified, defaults to a page size of 100. For reports, the default is 100 rows. If you need larger sets of data from your report, returns a maximum of 10,000 rows per request. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl 'https://api.smartsheet.com/2.0/users?email=john.doe@smartsheet.com&include=lastLogin' \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "pageNumber": 1,
- "pageSize": 50,
- "totalPages": 25,
- "totalCount": 136,
- "data": [
- {
- "id": 48569348493401200,
- "admin": true,
- "customWelcomeScreenViewed": "2020-08-25T12:15:47Z",
- "email": "jane.doe@smartsheet.com",
- "firstName": "Jane",
- "groupAdmin": true,
- "lastLogin": "2020-10-04T18:32:47Z",
- "lastName": "Doe",
- "licensedSheetCreator": true,
- "name": "Jane Doe",
- "profileImage": {
- "imageId": "u!1!nAtdn5RJB_o!k6_e_3h2R3w!wmYXPek-yVD",
- "height": 1050,
- "width": 1050
}, - "resourceViewer": true,
- "sheetCount": 42,
- "status": "ACTIVE"
}
]
}
Adds a user to the organization account.
This operation is only available to system administrators
If successful, and user auto provisioning (UAP) is on, and user matches the auto provisioning rules, user is added to the org. If UAP is off, or user does not match UAP rules, user is invited to the org and must explicitly accept the invitation to join.
In some specific scenarios, supplied attributes such as firstName and lastName may be ignored. For example, if you are inviting an existing Smartsheet user to join your organization account, and the invited user has not yet accepted your invitation, any supplied firstName and lastName are ignored.
sendEmail | boolean Default: false Either true or false to indicate whether to notify the user by email. Default is false. If true, limit is 1000 emails. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
The User to be created
admin | boolean Default: false Indicates whether the user is a system admin (can manage user accounts and organization account). |
string <email> User's primary email address. | |
firstName | string User's first name. |
groupAdmin | boolean Default: false Indicates whether the user is a group admin (can create and edit groups). |
lastName | string User's last name. |
licensedSheetCreator | boolean Default: false Indicates whether the user is a licensed user (can create and own sheets). |
object | |
resourceViewer | boolean Default: false Indicates whether the user is a resource viewer (can access resource views). |
status | string User status, set to one of the listed enum values. |
{- "admin": true,
- "email": "jane.doe@smartsheet.com",
- "firstName": "Jane",
- "groupAdmin": true,
- "lastName": "Doe",
- "licensedSheetCreator": true,
- "profileImage": {
- "imageId": "u!1!nAtdn5RJB_o!k6_e_3h2R3w!wmYXPek-yVD",
- "height": 1050,
- "width": 1050
}, - "resourceViewer": true,
- "status": "ACTIVE"
}
{- "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "id": 48569348493401200,
- "admin": true,
- "customWelcomeScreenViewed": "2020-08-25T12:15:47Z",
- "email": "jane.doe@smartsheet.com",
- "firstName": "Jane",
- "groupAdmin": true,
- "lastLogin": "2020-10-04T18:32:47Z",
- "lastName": "Doe",
- "licensedSheetCreator": true,
- "name": "Jane Doe",
- "profileImage": {
- "imageId": "u!1!nAtdn5RJB_o!k6_e_3h2R3w!wmYXPek-yVD",
- "height": 1050,
- "width": 1050
}, - "resourceViewer": true,
- "sheetCount": 42,
- "status": "ACTIVE"
}
}
Gets the current user
NOTE: For system administrators, the following UserProfile attributes are included in the response:
include | string When specified with a value of 'groups', response includes an array of groups (groupId, name, and description only) that the user is a member of. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/users/me \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "id": 48569348493401200,
- "account": {
- "id": 122454719915908,
- "name": "Smartsheet Org"
}, - "admin": true,
- "alternateEmails": {
- "id": 8150532427671428,
- "confirmed": true,
- "email": "johnathan.doe@smartsheet.com"
}, - "company": "Smartsheet",
- "customWelcomeScreenViewed": "2020-08-25T12:15:47Z",
- "department": "Engineering",
- "email": "john.doe@smartsheet.com",
- "firstName": "John",
- "groupAdmin": true,
- "jiraAdmin": true,
- "lastLogin": "2020-10-31T12:15:47Z",
- "lastName": "Doe",
- "licensedSheetCreator": true,
- "locale": "en_US",
- "mobilePhone": "555-867-5309",
- "profileImage": {
- "imageId": "u!1!nAtdn5RJB_o!k6_e_3h2R3w!wmYXPek-yVD",
- "height": 1050,
- "width": 1050
}, - "resourceViewer": true,
- "role": "Software Developer",
- "salesforceAdmin": false,
- "salesforceUser": false,
- "sheetCount": 0,
- "timeZone": "US/Pacific",
- "title": "Senior Software Engineer",
- "workPhone": "844-324-2360",
- "data": [
- {
- "id": 4583173393803140,
- "name": "Group 1",
- "description": "My group",
- "owner": "john.doe@smartsheet.com",
- "ownerId": 2331373580117892,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
]
}
Gets the user specified in the URL.
userId required | number User Id |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/users/{userId} \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "id": 48569348493401200,
- "account": {
- "id": 122454719915908,
- "name": "Smartsheet Org"
}, - "admin": true,
- "alternateEmails": {
- "id": 8150532427671428,
- "confirmed": true,
- "email": "johnathan.doe@smartsheet.com"
}, - "company": "Smartsheet",
- "customWelcomeScreenViewed": "2020-08-25T12:15:47Z",
- "department": "Engineering",
- "email": "john.doe@smartsheet.com",
- "firstName": "John",
- "groupAdmin": true,
- "jiraAdmin": true,
- "lastLogin": "2020-10-31T12:15:47Z",
- "lastName": "Doe",
- "licensedSheetCreator": true,
- "locale": "en_US",
- "mobilePhone": "555-867-5309",
- "profileImage": {
- "imageId": "u!1!nAtdn5RJB_o!k6_e_3h2R3w!wmYXPek-yVD",
- "height": 1050,
- "width": 1050
}, - "resourceViewer": true,
- "role": "Software Developer",
- "salesforceAdmin": false,
- "salesforceUser": false,
- "sheetCount": 0,
- "timeZone": "US/Pacific",
- "title": "Senior Software Engineer",
- "workPhone": "844-324-2360"
}
Removes a user from an organization account. User is transitioned to a free collaborator with read-only access to owned reports, sheets, Sights, workspaces, and any shared templates (unless those are optionally transferred to another user).
This operation is only available to system administrators
If the transferTo parameter is specified and the removed user owns groups, the user specified via the transferTo parameter must have group admin rights.
The transferTo and transferSheets parameters cannot be specified for a user who has not yet accepted an invitation to join the organization account (that is, if user status=PENDING).
userId required | number User Id |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
removeFromSharing | boolean
|
transferSheets | boolean Default: false
|
transferTo | number (Required if user owns groups.)
|
{- "removeFromSharing": true,
- "transferSheets": true,
- "transferTo": 94094820842
}
{- "message": "SUCCESS",
- "resultCode": 0
}
Updates the user specified in the URL.
userId required | number User Id |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
User object containing at least one of the following attributes:
admin | boolean Default: false Indicates whether the user is a system admin (can manage user accounts and organization account). |
licensedSheetCreator | boolean Default: false Indicates whether the user is a licensed user (can create and own sheets). |
firstName | string User's first name. |
lastName | string User's last name. |
groupAdmin | boolean Default: false Indicates whether the user is a group admin (can create and edit groups). |
resourceViewer | boolean Default: false Indicates whether the user is a resource viewer (can access resource views). |
{- "admin": true,
- "licensedSheetCreator": true,
- "firstName": "Jane",
- "lastName": "Doe",
- "groupAdmin": true,
- "resourceViewer": true
}
{- "message": "SUCCESS",
- "resultCode": 0,
- "data": [
- {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe",
- "firstName": "Jane",
- "lastName": "Doe",
- "profileImage": {
- "imageId": "u!1!nAtdn5RJB_o!k6_e_3h2R3w!wmYXPek-yVD",
- "height": 1050,
- "width": 1050
}, - "id": 48569348493401200
}
]
}
Deactivates a user in an organization account. User will no longer be able to access Smartsheet in any way. User's assets will continue to be owned by this user until they are transferred to another user.
This operation is only available to system administrators of Enterprise organizations. Additionally, if organizations have Enterprise Plan Manager (EPM) enabled, a system administrator of the main plan can provide a userId for a user belonging to a managed plan within the EPM hierarchy.
NOTES:
userId required | number User Id |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/users/{userId}/deactivate \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789" \ -H "Content-Type: application/json" \ -X POST
{- "message": "SUCCESS",
- "resultCode": 0
}
Uploads an image to the user profile.
Uploading a profile image differs from Adding an Image to a Cell in the following ways:
userId required | number User Id |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
Content-Type | string Default: application/json Required for POST and PUT requests. Defines the structure for the request body. |
{- "message": "SUCCESS",
- "resultCode": 0,
- "data": [
- {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe",
- "firstName": "Jane",
- "lastName": "Doe",
- "profileImage": {
- "imageId": "u!1!nAtdn5RJB_o!k6_e_3h2R3w!wmYXPek-yVD",
- "height": 1050,
- "width": 1050
}, - "id": 48569348493401200
}
]
}
Reactivates a user in an organization account. User will regain to access Smartsheet and will have the same roles as when they were deactivated.
This operation is only available to system administrators of Enterprise organizations. Additionally, if organizations have Enterprise Plan Manager (EPM) enabled, a system administrator of the main plan can provide a userId for a user belonging to a managed plan within the EPM hierarchy.
NOTES:
userId required | number User Id |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/users/{userId}/reactivate \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789" \ -H "Content-Type: application/json" \ -X POST
{- "message": "SUCCESS",
- "resultCode": 0
}