Skip to content

Function: getUserProperty() ​

ts
function getUserProperty(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  key?: string;
  value?: unknown;
}>;

Defined in: src/server/api/users.ts:697

Returns the value of the property with a given key from the user identified by the key or by the id.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ propertyKey: string; userKey?: string; username?: string; }-
parameters.propertyKeystringThe key of the user's property
parameters.userKey?stringKey of the user whose property is to be returned
parameters.username?stringUsername of the user whose property is to be returned
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; key?: string; value?: unknown; }>