On by default

Users

Get User

read-onlyidempotentopen-world
discourse_get_user

Get user info. Returns JSON with id, username, name, trust_level, created_at, bio, admin, and moderator.

Parameters

usernamestringrequired

List User Posts

read-onlyidempotentopen-world
discourse_list_user_posts

Get paginated list of user posts/replies. Returns JSON object with posts array (id, topic_id, post_number, slug, title, created_at, excerpt, category_id) and meta (page, limit, has_more).

Parameters

usernamestringrequired
pageinteger>= 0
limitinteger[1, 50]

Posts per page (max 50, default 30)

List Users

read-onlyidempotentopen-world
discourse_list_users

List users via admin API. Requires admin API key. Returns ~100 users per page (Discourse's fixed page size). Returns JSON with users array and pagination meta.

Parameters

querystringactivenewstaffsuspendedsilencedpendingstagedactive

User query type

filterstring

Search by username, email, or IP address

orderstringcreatedlast_emailedseenusernametrust_leveldays_visitedposts

Sort order field

ascbooleanfalse

Sort ascending (default: false/descending)

pageinteger>= 0

Page number (0-indexed)

Create User

discourse_create_user

Create a user through Discourse's signup API using a global admin API key. Reports whether upstream confirmed creation; anti-enumeration responses without user_id remain indeterminate. Optional avatar assignment runs only after confirmed creation.

Parameters

usernamestringrequired
emailstring<email>required
namestringrequired
passwordstringrequired
activebooleantrue
approvedbooleantrue
upload_idinteger

Avatar upload_id (from discourse_upload_file)

Update User

discourse_update_user

Update user profile fields. If upload_id is provided, also sets the user's avatar. Returns JSON with success status and updated user details.

Parameters

usernamestringrequired

Username of user to update

namestring

Display name

bio_rawstring

Bio in markdown

locationstring

Location

websitestring<uri>

Website URL

titlestring

User title

date_of_birthstring

Date of birth (YYYY-MM-DD)

localestring

Language preference

profile_background_upload_urlstring

Profile background image URL

card_background_upload_urlstring

Card background image URL

upload_idinteger

Avatar upload_id (from discourse_upload_file)