# GetUserInfo

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Unknown

Source code: <https://github.com/FrendsPlatform/Frends.Slack/tree/main/Frends.Slack.GetUserInfo>

{% tabs %}
{% tab title="Parameter: Input" %}

| Name              | Description                                                                                                                                                |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| UserId : `String` | <p>The unique Slack user ID of the person whose information you want to retrieve.</p><p><br>Default: <code>-</code><br>Example: <code>U0A1BC2DE</code></p> |
| {% endtab %}      |                                                                                                                                                            |

{% tab title="Parameter: Connection" %}

| Name               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 🗝Token : `String` | <p>Slack OAuth token used for authentication.</p><p>If the token is a bot token (starts with "xoxb"), messages</p><p>will be updated as the Slack app's bot user.</p><p>If the token is a user token (starts with "xoxp"), messages</p><p>will be updated as the Slack user who authorized the token.</p><p>The token owner must be the original message poster</p><p>or have appropriate permissions to edit the message.</p><p>Note: User tokens require the user to have authorized the app via OAuth</p><p>with appropriate scopes (e.g., "chat:write").</p><p><br>Default: <code>-</code><br>Example: <code>xoxb-123456789</code></p> |
| {% endtab %}       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |

{% tab title="Parameter: Options" %}

| Name                             | Description                                                                                                                    |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| ThrowErrorOnFailure : `Boolean`  | <p>Whether to throw an error on failure.</p><p><br>Default: <code>True</code><br>Example: <code>false</code></p>               |
| ErrorMessageOnFailure : `String` | <p>Overrides the error message on failure.</p><p><br>Default: <code>-</code><br>Example: <code>Custom error message</code></p> |
| {% endtab %}                     |                                                                                                                                |

{% tab title="Result: Result" %}

| Name                | Description                                                                                                                                                                                             |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Success : `Boolean` | <p>Indicates if the task completed successfully.<br>Example: <code>true</code></p>                                                                                                                      |
| User : `User`       | <p>The Slack user information retrieved by the task.<br>Example: <code>{ "Id": "U012A3CDE", "Name": "john.doe", "RealName": "John Doe", "IsAdmin": true, "Email": "<john.doe@example.com>" }</code></p> |
| Error : `Error`     | <p>Error that occurred during task execution.<br>Example: <code>object { string Message, object { Exception Exception } AdditionalInfo }</code></p>                                                     |
| {% endtab %}        |                                                                                                                                                                                                         |

{% tab title="Changelog" %}

## Changelog

### \[1.0.0] - 2025-08-04

#### Added

* Initial implementation
  {% endtab %}
  {% endtabs %}
