Class: Management

Management(options)

new Management(options)

Auth0 Management API Client (methods allowed to be called from the browser only)

Parameters:
Name Type Description
options Object
Properties
Name Type Description
domain Object

your Auth0 acount domain

token Object

a valid API token

Source:

Methods

getUser(userId, cb)

Returns the user profile

Parameters:
Name Type Description
userId String

identifier of the user to retrieve

cb userCallback
Source:
See:

linkUser(userId, secondaryUserToken, cb)

Link two users

Parameters:
Name Type Description
userId String
secondaryUserToken String
cb userCallback
Source:
See:

patchUserAttributes(userId, user, cb)

Updates the user attributes. It will patch the user attributes that the server allows it.

Parameters:
Name Type Description
userId String
user Object
cb userCallback
Source:
See:

patchUserMetadata(userId, userMetadata, cb)

Updates the user metdata. It will patch the user metdata with the attributes sent.

Parameters:
Name Type Description
userId String
userMetadata Object
cb userCallback
Source:
See:

Type Definitions

userCallback(erropt, resultopt)

Parameters:
Name Type Attributes Description
err Error <optional>

failure reason for the failed request to Management API

result Object <optional>

user profile

Source: