# AdminUsers_Associated_accountsById Get a user by 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 `AdminUsers_Associated_accountsById`. 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 | |---|:---:|:---:|:---:|---| | `id` | `` | ☑ | | | ## Columns of Table Function The columns of the table function `AdminUsers_Associated_accountsById` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `active` | `char` | Active | ☐ | | | `admin` | `char` | Administrator | ☐ | | | `api_key_count` | `int64` | | ☐ | | | `approved_by_avatar_template` | `varchar2` | | ☐ | | | `approved_by_id` | `int64` | | ☐ | | | `approved_by_name` | `varchar2` | | ☐ | | | `approved_by_username` | `varchar2` | | ☐ | | | `avatar_template` | `varchar2` | Avatar Template | ☐ | | | `badge_count` | `int64` | #Badges | ☐ | | | `bounce_score` | `decimal` | Bounce Score | ☐ | | | `can_activate` | `char` | Can Activate | ☐ | | | `can_be_anonymized` | `char` | Can Be Anonymized | ☐ | | | `can_be_deleted` | `char` | Can Be Deleted | ☐ | | | `can_be_merged` | `char` | | ☐ | | | `can_change_trust_level` | `char` | | ☐ | | | `can_deactivate` | `char` | Can Deactivate | ☐ | | | `can_delete_all_posts` | `char` | Can Delete All Posts | ☐ | | | `can_delete_sso_record` | `char` | | ☐ | | | `can_disable_second_factor` | `char` | Can Disable Second Factor | ☐ | | | `can_grant_admin` | `char` | Can Grant Admin | ☐ | | | `can_grant_moderation` | `char` | Can Grant Moderation | ☐ | | | `can_impersonate` | `char` | Can Impersonate | ☐ | | | `can_revoke_admin` | `char` | Can Revoke Admin | ☐ | | | `can_revoke_moderation` | `char` | Can Revoke Moderation | ☐ | | | `can_send_activation_email` | `char` | Can Send Activation Email | ☐ | | | `can_view_action_logs` | `char` | Can View Action Logs | ☐ | | | `created_at_age` | `decimal` | Created at Age | ☐ | | | `created_at` | `varchar2` | Created at | ☐ | | | `days_visited` | `int64` | Days Visited | ☐ | | | `external_ids` | `varchar2` | | ☐ | The JSON text of the nested object. | | `flags_given_count` | `int64` | Flags Given Count | ☐ | | | `flags_received_count` | `int64` | Flags Received Count | ☐ | | | `full_silence_reason` | `varchar2` | | ☐ | | | `full_suspend_reason` | `varchar2` | Full Suspend Reason | ☐ | | | `id` | `int64` | ID | ☐ | | | `include_ip` | `char` | | ☐ | | | `ip_address` | `varchar2` | IP Address | ☐ | | | `last_emailed_age` | `decimal` | Last Emailed Age | ☐ | | | `last_emailed_at` | `varchar2` | Last Emailed at | ☐ | | | `last_seen_age` | `decimal` | Last Seen Age | ☐ | | | `last_seen_at` | `varchar2` | Last Seen at | ☐ | | | `latest_export` | `varchar2` | | ☐ | The JSON text of the nested object. | | `like_count` | `int64` | #Likes | ☐ | | | `like_given_count` | `int64` | Like Given Count | ☐ | | | `manual_locked_trust_level` | `varchar2` | | ☐ | | | `moderator` | `char` | Moderator | ☐ | | | `name` | `varchar2` | Name | ☐ | | | `next_penalty` | `varchar2` | | ☐ | | | `penalty_counts_silenced` | `int64` | | ☐ | | | `penalty_counts_suspended` | `int64` | | ☐ | | | `post_count` | `int64` | #Posts | ☐ | | | `post_edits_count` | `int64` | | ☐ | | | `posts_read_count` | `int64` | Posts Read Count | ☐ | | | `primary_group_id` | `int64` | | ☐ | | | `private_topics_count` | `int64` | Private Topics Count | ☐ | | | `registration_ip_address` | `varchar2` | Registration IP Address | ☐ | | | `reset_bounce_score_after` | `varchar2` | | ☐ | | | `silence_reason` | `varchar2` | | ☐ | | | `silenced_by` | `varchar2` | | ☐ | | | `similar_users_count` | `int64` | | ☐ | | | `single_sign_on_record` | `varchar2` | | ☐ | | | `staged` | `char` | Staged | ☐ | | | `suspended_by` | `varchar2` | | ☐ | | | `time_read` | `int64` | Time Read | ☐ | | | `title` | `varchar2` | Title | ☐ | | | `tl3_requirements_days_visited` | `int64` | | ☐ | | | `tl3_requirements_max_flagged_by_users` | `int64` | | ☐ | | | `tl3_requirements_max_flagged_posts` | `int64` | | ☐ | | | `tl3_requirements_min_days_visited` | `int64` | | ☐ | | | `tl3_requirements_min_likes_given` | `int64` | | ☐ | | | `tl3_requirements_min_likes_received_days` | `int64` | | ☐ | | | `tl3_requirements_min_likes_received_users` | `int64` | | ☐ | | | `tl3_requirements_min_likes_received` | `int64` | | ☐ | | | `tl3_requirements_min_posts_read_all_time` | `int64` | | ☐ | | | `tl3_requirements_min_posts_read` | `int64` | | ☐ | | | `tl3_requirements_min_topics_replied_to` | `int64` | | ☐ | | | `tl3_requirements_min_topics_viewed_all_time` | `int64` | | ☐ | | | `tl3_requirements_min_topics_viewed` | `int64` | | ☐ | | | `tl3_requirements_num_flagged_by_users` | `int64` | | ☐ | | | `tl3_requirements_num_flagged_posts` | `int64` | | ☐ | | | `tl3_requirements_num_likes_given` | `int64` | | ☐ | | | `tl3_requirements_num_likes_received_days` | `int64` | | ☐ | | | `tl3_requirements_num_likes_received_users` | `int64` | | ☐ | | | `tl3_requirements_num_likes_received` | `int64` | | ☐ | | | `tl3_requirements_num_topics_replied_to` | `int64` | | ☐ | | | `tl3_requirements_on_grace_period` | `char` | | ☐ | | | `tl3_requirements_penalty_counts_silenced` | `int64` | | ☐ | | | `tl3_requirements_penalty_counts_suspended` | `int64` | | ☐ | | | `tl3_requirements_penalty_counts_total` | `int64` | | ☐ | | | `tl3_requirements_posts_read_all_time` | `int64` | | ☐ | | | `tl3_requirements_posts_read` | `int64` | | ☐ | | | `tl3_requirements_requirements_lost` | `char` | | ☐ | | | `tl3_requirements_requirements_met` | `char` | | ☐ | | | `tl3_requirements_time_period` | `int64` | | ☐ | | | `tl3_requirements_topics_viewed_all_time` | `int64` | | ☐ | | | `tl3_requirements_topics_viewed` | `int64` | | ☐ | | | `tl3_requirements_trust_level_locked` | `char` | | ☐ | | | `topic_count` | `int64` | #Topics | ☐ | | | `topics_entered` | `int64` | Topics Entered | ☐ | | | `trust_level` | `int64` | Trust Level | ☐ | | | `username` | `varchar2` | User Name | ☐ | | | `warnings_received_count` | `int64` | Warnings Received Count | ☐ | |