- data |
+ params |
@@ -4988,15 +4757,6 @@ Returns:
-
- Example
-
- management.users.getUserOrganizations({ id: USER_ID }, function (err, orgs) {
- console.log(orgs);
-});
-
-
-
@@ -5004,14 +4764,14 @@ Example
- impersonate(userId, settings, cbopt) → {Promise|undefined}
+ getByEmail(emailopt, optionsopt, cbopt) → {Promise|undefined}
- Impersonate the user with the given user ID.
+ Get Users by an Email Address
@@ -5047,7 +4807,7 @@ impersonat
Source:
@@ -5093,7 +4853,7 @@ Parameters:
- userId |
+ email |
@@ -5108,6 +4868,8 @@ Parameters:
|
+ <optional>
+
@@ -5118,7 +4880,7 @@ Parameters:
|
- User ID token.
+ Email address of user(s) to find
|
@@ -5127,7 +4889,7 @@ Parameters:
- settings |
+ options |
@@ -5142,6 +4904,8 @@ Parameters:
|
+ <optional>
+
@@ -5152,7 +4916,7 @@ Parameters:
|
- Impersonation settings.
+ Additional options to pass to the endpoint
@@ -5180,41 +4944,7 @@ Parameters:
|
- impersonator_id |
-
-
-
-
-
-string
-
-
-
- |
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
- Impersonator user ID.
-
- |
-
-
-
-
-
-
- protocol |
+ fields |
@@ -5229,39 +4959,7 @@ Parameters:
|
-
-
-
-
- |
-
-
-
-
-
- The authentication protocol.
-
- |
-
-
-
-
-
-
- token |
-
-
-
-
-
-string
-
-
-
- |
-
-
-
+ <optional>
@@ -5273,7 +4971,7 @@ Parameters:
|
- API v1 token obtained for impersonation
+ Comma-separated list of fields to include or exclude in the result
|
@@ -5282,13 +4980,13 @@ Parameters:
- clientId |
+ include_fields |
-string
+boolean
@@ -5309,7 +5007,7 @@ Parameters:
|
- Client id used for impersonation. Uses the one supplied in the constructor by default.
+ Whether specified fields are to be included (true) or excluded (false). Defaults to true.
|
@@ -5405,23 +5103,12 @@ Returns:
Example
- Gets a link that can be used once to log in as a specific user. Useful for
- troubleshooting. Find more information in the
- [API Docs](https://auth0.com/docs/auth-api#!#post--users--user_id--impersonate).
+ This method takes a first argument as the Email address to look for
+ users, and uses the /users-by-email API, not the search API
- var settings = {
- impersonator_id: '{IMPERSONATOR_ID}',
- protocol: 'oauth2',
- additionalParameters: {} // Optional additional params.
-};
-
-auth0.users.impersonate(userId, settings, function (err, link) {
- if (err) {
- // Handle error.
- }
-
- console.log(link);
+ management.users.getByEmail('email@address', function (err, users) {
+ console.log(users);
});
@@ -5433,14 +5120,14 @@ Example
- invalidateRememberBrowser(params, cbopt) → {Promise|undefined}
+ getGuardianEnrollments(data, cbopt) → {Promise|undefined}
- Invalidate all remembered browsers for MFA.
+ Get a list of Guardian enrollments.
@@ -5476,7 +5163,7 @@ Source:
@@ -5522,7 +5209,7 @@ Parameters:
- params |
+ data |
@@ -5685,12 +5372,8 @@ Returns:
Example
- management.users.invalidateRememberBrowser({ id: USER_ID }, function (err, result) {
- if (err) {
- // Handle error.
- }
-
- // Invalidated all remembered browsers.
+ management.users.getGuardianEnrollments({ id: USER_ID }, function (err, enrollments) {
+ console.log(enrollments);
});
@@ -5702,14 +5385,14 @@ Example
- link(userId, params, cbopt) → {Promise|undefined}
+ getInfo(accessToken, cbopt) → {Promise|undefined}
- Link the user with another account.
+ Given an access token get the user profile linked to it.
@@ -5745,7 +5428,7 @@ linkSource:
@@ -5791,7 +5474,7 @@ Parameters:
- userId |
+ accessToken |
@@ -5816,7 +5499,7 @@ Parameters:
|
- ID of the primary user.
+ User access token.
|
@@ -5825,13 +5508,13 @@ Parameters:
- params |
+ cb |
-object
+function
@@ -5840,6 +5523,8 @@ Parameters:
|
+ <optional>
+
@@ -5850,111 +5535,221 @@ Parameters:
|
- Secondary user data.
+ Callback function.
-
+ |
+
-
- Type |
-
-
- Description |
- |
-
-
-
-
-
- user_id |
-
-
-
-
-string
-
- |
-
-
-
- ID of the user to be linked.
-
- |
-
-
-
-
- connection_id |
-
+
+ Returns:
-
-
-
-string
+
+
+ -
+ Type:
+
+ -
+
+
Promise
+|
-
- |
+ undefined
-
-
+
+
-
- ID of the connection to be used.
-
- |
-
+
-
-
- provider |
-
-
-
-
-string
+
+ Example
-
- |
+
+ Get the user information based on the Auth0 access token (obtained during
+ login). Find more information in the
+ API Docs.
+
+
+ auth0.users.getInfo(accessToken, function (err, userInfo) {
+ if (err) {
+ // Handle error.
+ }
-
+ console.log(userInfo);
+});
+
+
+
+
+
-
- Identity provider of the secondary user account being linked.
-
+
+
+ getPermissions(data, cbopt) → {Promise|undefined}
+
+
+
+
+
+
+ Get a list of permissions for a user.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+ Attributes |
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ data |
+
+
+
+
+
+object
+
+
+
|
-
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+ The user data object.
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
- link_with |
+ id |
@@ -5971,7 +5766,7 @@ Parameters:
|
- JWT for the secondary account being linked. If sending this parameter, provider, user_id, and connection_id must not be sent.
+ The user id.
|
@@ -6066,18 +5861,8 @@ Returns:
Example
- var userId = 'USER_ID';
-var params = {
- user_id: 'OTHER_USER_ID',
- connection_id: 'CONNECTION_ID'
-};
-
-management.users.link(userId, params, function (err, user) {
- if (err) {
- // Handle error.
- }
-
- // Users linked.
+ management.users.getPermissions({ id: USER_ID }, function (err, permissions) {
+ console.log(permissions);
});
@@ -6089,14 +5874,14 @@ Example
- logs(params, cbopt) → {Promise|undefined}
+ getRoles(data, cbopt) → {Promise|undefined}
- Get user's log events.
+ Get a list of roles for a user.
@@ -6132,7 +5917,7 @@ logsSource:
@@ -6178,7 +5963,7 @@ Parameters:
- params |
+ data |
@@ -6203,7 +5988,7 @@ Parameters:
|
- Get logs data.
+ The user data object.
@@ -6246,33 +6031,15 @@ Parameters:
|
- User id.
+ The user id.
|
+
+
- |
-
- per_page |
-
-
-
-
-
-number
-
-
-
- |
-
-
-
-
-
-
- Number of results per page.
|
@@ -6281,143 +6048,57 @@ Parameters:
- page |
+ cb |
-number
+function
|
-
-
-
-
- Page number, zero indexed.
+ |
- |
-
-
-
-
-
-
- sort |
-
-
-
-
+ <optional>
-string
+
-
- |
-
+
+
- The field to use for sorting. Use field:order where order is 1 for ascending and -1 for descending. For example date:-1.
+ Callback function.
|
+
+
- |
-
- include_totals |
-
-
-
-
-boolean
-
- |
-
-
-
- true if a query summary must be included in the result, false otherwise. Default false;
-
- |
-
-
-
-
-
-
|
-
-
-