# uByExternal_User_badgesByExternalId
Get a single user by SSO external ID
- Catalog: `Discourse`
- Schema: `Users`
This is a read-only table function. The Discourse API may not support changing the data or the Invantive UniversalSQL driver for Discourse does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Discourse API.
## Parameters of Table Function
The following parameters can be used to control the behaviour of the table function `uByExternal_User_badgesByExternalId`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third.
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `external_id` | `` | ☑ | | |
## Columns of Table Function
The columns of the table function `uByExternal_User_badgesByExternalId` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `user_admin` | `char` | User Admin | ☐ | |
| `user_avatar_template` | `varchar2` | User Avatar Template | ☐ | |
| `user_badge_count` | `decimal` | User Badge Count | ☐ | |
| `user_can_edit_email` | `char` | User Can Edit Email | ☐ | |
| `user_can_edit_name` | `char` | User Can Edit Name | ☐ | |
| `user_can_edit_username` | `char` | User Can Edit Username | ☐ | |
| `user_can_edit` | `char` | User Can Edit | ☐ | |
| `user_can_send_private_message_to_user` | `char` | User Can Send Private Message to User | ☐ | |
| `user_can_send_private_messages` | `char` | User Can Send Private Messages | ☐ | |
| `user_card_badge` | `varchar2` | | ☐ | |
| `user_created_at` | `varchar2` | User Created at | ☐ | |
| `user_custom_fields` | `varchar2` | | ☐ | |
| `user_id` | `decimal` | User ID | ☐ | |
| `user_invited_by` | `varchar2` | | ☐ | |
| `user_last_posted_at` | `varchar2` | User Last Posted at | ☐ | |
| `user_last_seen_at` | `varchar2` | User Last Seen at | ☐ | |
| `user_moderator` | `char` | User Moderator | ☐ | |
| `user_name` | `varchar2` | User Name | ☐ | |
| `user_pending_count` | `decimal` | User Pending Count | ☐ | |
| `user_primary_group_flair_bg_color` | `varchar2` | | ☐ | |
| `user_primary_group_flair_color` | `varchar2` | | ☐ | |
| `user_primary_group_flair_url` | `varchar2` | | ☐ | |
| `user_primary_group_name` | `varchar2` | | ☐ | |
| `user_profile_view_count` | `decimal` | User Profile View Count | ☐ | |
| `user_title` | `varchar2` | | ☐ | |
| `user_trust_level` | `decimal` | User Trust Level | ☐ | |
| `user_uploaded_avatar_id` | `varchar2` | | ☐ | |
| `user_username` | `varchar2` | User Name | ☐ | |
| `user_website_name` | `varchar2` | | ☐ | |