Create a user Check out the docs for more info
ID of the buyer.
Required fields: Username, FirstName, LastName, Email, Active
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Optionalsignal?: AbortSignalAbortSignal that can be used to cancel the request.
Delete a user Check out the docs for more info
ID of the buyer.
ID of the user.
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Optionalsignal?: AbortSignalAbortSignal that can be used to cancel the request.
Retrieve a user Check out the docs for more info
ID of the buyer.
ID of the user.
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Optionalsignal?: AbortSignalAbortSignal that can be used to cancel the request.
Retrieve a user access token Check out the docs for more info
ID of the buyer.
ID of the user.
Required fields: ClientID, Roles
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Optionalsignal?: AbortSignalAbortSignal that can be used to cancel the request.
List users Check out the docs for more info
ID of the buyer.
Optionalfilters?: FiltersAn object or dictionary representing key/value pairs to apply as filters. Valid keys are top-level properties of the returned model or 'xp.???'
Optionalpage?: numberPage of results to return. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.
OptionalpageSize?: numberNumber of results to return per page.
Optionalsearch?: stringWord or phrase to search for.
OptionalsearchOn?: ("ID" | "LastName" | "FirstName" | "Username" | "Email")[]Comma-delimited list of fields to search on.
OptionalsortBy?: (Comma-delimited list of fields to sort by.
OptionaluserGroupID?: stringID of the user group.
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Optionalsignal?: AbortSignalAbortSignal that can be used to cancel the request.
List user across buyers Check out the docs for more info
Optionalfilters?: FiltersAn object or dictionary representing key/value pairs to apply as filters. Valid keys are top-level properties of the returned model or 'xp.???'
Optionalpage?: numberPage of results to return. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.
OptionalpageSize?: numberNumber of results to return per page.
Optionalsearch?: stringWord or phrase to search for.
OptionalsearchOn?: ("ID" | "LastName" | "FirstName" | "Username" | "Email")[]Comma-delimited list of fields to search on.
OptionalsortBy?: (Comma-delimited list of fields to sort by.
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Optionalsignal?: AbortSignalAbortSignal that can be used to cancel the request.
Move a user to a different buyer Check out the docs for more info
ID of the buyer.
ID of the user.
ID of the new buyer.
Optionalorders?: UserOrderMoveOptionOrders of the user. Possible values: None, Unsubmitted, All.
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Optionalsignal?: AbortSignalAbortSignal that can be used to cancel the request.
Partially update a user Check out the docs for more info
ID of the buyer.
ID of the user.
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Optionalsignal?: AbortSignalAbortSignal that can be used to cancel the request.
Revoke a user tokens Revokes all security tokens of specified buyer user. Check out the docs for more info
ID of the buyer.
ID of the user.
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Optionalsignal?: AbortSignalAbortSignal that can be used to cancel the request.
Create or update a user If an object with the same ID already exists, it will be overwritten. Check out the docs for more info
ID of the buyer.
ID of the user.
Required fields: Username, FirstName, LastName, Email, Active
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Optionalsignal?: AbortSignalAbortSignal that can be used to cancel the request.
Unlock a user account Check out the docs for more info
ID of the buyer.
ID of the user.
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Optionalsignal?: AbortSignalAbortSignal that can be used to cancel the request.
Description
enables impersonation by calling the subsequent method with the stored impersonation token
Example