getUserProfile
Returns a member’s profile: their About Me, pronouns, reputation total, the 10 most recent reputations, and whether it is currently their birthday.Batchable as the
user.getProfile op with args { userId } — see
apiBatch. Requires the Profiles
module; the reputation fields also require the Reputations module.Parameters
number | string
required
The
UserId whose profile to fetch.Returns
table | nil
The profile payload, or
nil if the request was rejected (e.g. the Profiles
module is disabled) or the backend was unreachable.Example
getUserDepartments
Returns the distinct departments (with color) of a member’s assigned roles.Batchable as the
user.getDepartments op with args { userId } — see
apiBatch. The op result is
{ departments = {...} }.Parameters
number | string
required
The
UserId whose departments to fetch.Returns
object[]
An array of the member’s departments. Empty if none (or the member is not in
the organization).

