Skip to content

Function: setUserProperty() ​

ts
function setUserProperty(
   client, 
   parameters, 
   options?
): Promise<void>;

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

Sets the value of the specified user's property. You can use this resource to store a custom data against the user identified by the key or by the id. The user who stores the data is required to have permissions to administer the user.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ body: Record<string, any>; propertyKey: string; userKey?: string; username?: string; }-
parameters.bodyRecord<string, any>-
parameters.propertyKey?stringThe key of the user's property. The maximum length of the key is 255 bytes.
parameters.userKey?stringKey of the user whose property is to be set
parameters.username?stringUsername of the user whose property is to be set
options?RequestOptions-

Returns ​

Promise<void>