Constructor
new TenantManager(options)
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
The client options.
|
Members
(inner) auth0RestClient :external:RestClient
Provides an abstraction layer for consuming the Stats endpoint.
- Source:
Type:
Methods
getSettings(cbopt) → {Promise|undefined}
Get the tenant settings..
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
cb |
function
|
<optional> |
Callback function. |
Returns:
- Type:
-
Promise
|undefined
Example
management.tenant.getSettings(function (err, settings) {
if (err) {
// Handle error.
}
console.log(settings);
});
updateSettings(data, cbopt) → {Promise|undefined}
Update the tenant settings.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
Object
|
The new tenant settings. |
|
cb |
function
|
<optional> |
Callback function. |
Returns:
- Type:
-
Promise
|undefined
Example
management.tenant.updateSettings(data, function (err) {
if (err) {
// Handle error.
}
});