# Get user

Gets the user specified in the URL.

For System Admins, the following UserProfile attributes are
included in the response):
  * admin
  * customWelcomeScreenViewed (only returned when an Enterprise user has viewed the Custom Welcome Screen)
  * groupAdmin
  * lastLogin (only returned if the user has logged in)
  * licensedSheetCreator
  * resourceViewer
  * sheetCount (Sunset) - The sheetCount attribute now holds the value -1 and is included only if the retrieved user's status is ACTIVE.
  * status

Endpoint: GET /users/{userId}
Version: 2.0.0
Security: APIToken, OAuth2

## Header parameters:

  - `Authorization` (string)
    API Access Token used to authenticate requests to Smartsheet APIs.

  - `smartsheet-integration-source` (string)
    Uses the following metadata to distinguish between human-initiated API requests and third-party service-initiated calls by AI Connectors or ITSM:

- Integration source type
- Organization name
- Integration source name 

Format:


TYPE,OrgName,SourceName


Examples: 

AI,SampleOrg,My-AI-Connector-v2

SCRIPT,SampleOrg2,Accounting-updater-script

APPLICATION,SampleOrg3,SheetUpdater
    Example: "AI,SampleOrg,My-AI-Connector-v2"

## Path parameters:

  - `userId` (number, required)
    ID of the user being accessed.

## Response 200 fields (application/json):

  - `id` (number)
    Current user's ID.
    Example: 48569348493401200

  - `account` (object)

  - `account.id` (number)
    Account ID.
    Example: 122454719915908

  - `account.name` (string)
    Account name.
    Example: "Smartsheet Org"

  - `admin` (boolean)
    Indicates whether the user is a system admin (can manage user accounts and organization account).
    Example: true

  - `alternateEmails` (array)
    The user's additional email addresses.

  - `alternateEmails.id` (number)
    AlternateEmail ID.
    Example: 8150532427671428

  - `alternateEmails.confirmed` (boolean)
    Indicates whether the alternate email address has been confirmed.
    Example: true

  - `alternateEmails.email` (string)
    User's alternate email address.
    Example: "johnathan.doe@smartsheet.com"

  - `company` (string)
    User's company.
    Example: "Smartsheet"

  - `customWelcomeScreenViewed` (string)
    Timestamp of viewing an Enterprise Custom Welcome Screen by the current user.
    Example: "2020-08-25T12:15:47Z"

  - `department` (string)
    User's department.
    Example: "Engineering"

  - `email` (string)
    Current user's primary email address.
    Example: "john.doe@smartsheet.com"

  - `firstName` (string)
    Current user's first name.
    Example: "John"

  - `groupAdmin` (boolean)
    Indicates whether the user is a group admin (can create and edit groups).
    Example: true

  - `jiraAdmin` (boolean)
    Indicates whether the user is a JIRA admin.
    Example: true

  - `lastLogin` (string)
    Last login time of the current user.
    Example: "2020-10-31T12:15:47Z"

  - `lastName` (string)
    Current user's last name.
    Example: "Doe"

  - `licensedSheetCreator` (boolean)
    Indicates whether the user is a licensed user (can create and own sheets).
    Example: true

  - `locale` (string)
    Current user's locale (see [ServerInfo](/api/smartsheet/openapi/serverinfo/serverinfo)).
    Example: "en_US"

  - `mobilePhone` (string)
    User's mobile phone number.
    Example: "555-867-5309"

  - `profileImage` (object)

  - `profileImage.imageId` (string)
    Unique image ID.
    Example: "u!1!nAtdn5RJB_o!k6_e_3h2R3w!wmYXPek-yVD"

  - `profileImage.height` (integer)
    Image height.
    Example: 1050

  - `profileImage.width` (integer)
    Image width.
    Example: 1050

  - `resourceViewer` (boolean)
    Indicates whether the user is a resource viewer (can access resource views).
    Example: true

  - `role` (string)
    User's role.
    Example: "Software Developer"

  - `salesforceAdmin` (boolean)
    Indicates whether the user is a Salesforce admin.

  - `salesforceUser` (boolean)
    Indicates whether the user is a registered Salesforce user.

  - `timeZone` (string)
    Current user's time zone ID.
    Example: "US/Pacific"

  - `title` (string)
    User's title.
    Example: "Senior Software Engineer"

  - `workPhone` (string)
    User's work phone number.
    Example: "844-324-2360"

  - `sheetCount` (number)
    SUNSET - The sheetCount attribute now holds the value -1 and is included only if the retrieved user's status is ACTIVE.
    Example: -1

## Response default fields (application/json):

  - `refId` (string)
    The ID of the specific error occurrence. Please include this information when contacting Smartsheet support.

  - `errorCode` (number)
    Custom error code from Smartsheet. See the complete [Error Code List](/api/smartsheet/error-codes).

  - `message` (string)
    Descriptive error message.


