Get User
discourse.get_user
ActionBusiness appsconnection required
Calls the Discourse API with the connection's credentials.
Read one user's profile by username.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Discourse
- Secret shape
- the API key, or {"api_key": "…"}
- Config it needs
- base_url, api_username
- Resolved by
- config.connection_id, else node.connection_id
Configuration
1 field, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
username The account's Discourse username, without a leading @. | string | Yes | — | — | jane_doe |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"username": "jane_doe"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
user The user record Discourse returned, in full. | object | — |
id The user's id. | number | — |
username The user's username. | string | — |
name The user's display name, empty when unset. | string | — |
trust_level The user's Discourse trust level, 0 to 4. | number | — |
admin True when the user is a site administrator. | boolean | — |
moderator True when the user is a moderator. | boolean | — |
{
"admin": false,
"id": 0,
"moderator": false,
"name": "",
"trust_level": 0,
"user": {},
"username": ""
}Related Discourse nodes
See Get User run in a workflow.
In a technical demo we add the Discourse connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.