User_GetLanuageId (Get)
- Last UpdatedNov 06, 2025
- 1 minute read
| Get | User_GetLanuageId |
Resource Path:/api/User/{id}
| Name | Description | Data Type |
|---|---|---|
| id | Required. The user ID (domain and username) of the user whose language ID is being retrieved. If MES OS User or OS Group security mode is being used, this is the Windows user account username. | string |
Examples: Work Tasks Lookups
To get the language ID of a user, the user ID has to be passed through an endcodeURIComponent() in the JavaScript and then sent to the API. So, in Enterprise Console, you would set up the user as:
api/user/{userId}
Then in the script in Enterprise Console, you would set:
{userId} = endcodeURIComponent(ourorgdomain\tad.smith)
When this endpoint is called, the system checks if the user is in the User_Name table:
- If the user is in the User_Name table, the user's language ID is returned.
- If the user is not in the User_Name table, the default language ID is returned from the System_Attr table (attr_id = 344).