# \#userinfo

**URL:** https://community.auth0.com/tag/userinfo/96.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Access to user info (oid) during actions post login](https://community.auth0.com/t/access-to-user-info-oid-during-actions-post-login/92519)

<div class="topic-metadata">

**Author:** [@emil.enemaerke](https://community.auth0.com/u/emil.enemaerke)\
**Replies:** 1\
**Last updated:** [October 26, 2022, 6:17pm UTC](https://community.auth0.com/t/access-to-user-info-oid-during-actions-post-login/92519 "2022-10-26T18:17:48Z")

</div>

Is it possible to access oid from user profile during actions post login? I cannot find it in the documentation: Actions Triggers: post-login - Event Object but it is available from Identity Provider Attributes section…

---

## [Userinfo (Facebook identity) doesn't return email address](https://community.auth0.com/t/userinfo-facebook-identity-doesnt-return-email-address/90181)

<div class="topic-metadata">

**Author:** [@acalpixca](https://community.auth0.com/u/acalpixca)\
**Replies:** 3\
**Last updated:** [September 8, 2022, 6:38pm UTC](https://community.auth0.com/t/userinfo-facebook-identity-doesnt-return-email-address/90181 "2022-09-08T18:38:48Z")

</div>

Using FlutterAppAuth, I invoke authorizeAndExchangeCode to authenticate user and obtain the access token. It’s working well. Then I invoke the API call userinfo with that access token to obtain some profile information …

---

## [How to export all users for all of our connections?](https://community.auth0.com/t/how-to-export-all-users-for-all-of-our-connections/89667)

<div class="topic-metadata">

**Author:** [@yotko.kanchev](https://community.auth0.com/u/yotko.kanchev)\
**Replies:** 2\
**Last updated:** [August 30, 2022, 12:37pm UTC](https://community.auth0.com/t/how-to-export-all-users-for-all-of-our-connections/89667 "2022-08-30T12:37:10Z")

</div>

I’m currently getting all of our company users(for all connections) via GET /api/v2/users endpoint, but just hit the limitation of 1000 users. I’m now looking at how to get them via users export job on POST /api/v2/jobs/…

---

## [Get Auth0 User Metadata in NodeJS/Express backend (ReactJS frontend login)](https://community.auth0.com/t/get-auth0-user-metadata-in-nodejs-express-backend-reactjs-frontend-login/89314)

<div class="topic-metadata">

**Author:** [@carlos.anderson](https://community.auth0.com/u/carlos.anderson)\
**Replies:** 7\
**Last updated:** [August 30, 2022, 8:16am UTC](https://community.auth0.com/t/get-auth0-user-metadata-in-nodejs-express-backend-reactjs-frontend-login/89314 "2022-08-30T08:16:29Z")

</div>

I have a ReactJS SPA (frontend) with NodeJS/Express (backend). My Auth0 login form is on the frontend. I would like to send user\_metadata from the frontend (the User object, created when User logs in) to my backend. I ne…

---

## [Update token after updating user info](https://community.auth0.com/t/update-token-after-updating-user-info/87140)

<div class="topic-metadata">

**Author:** [@christina](https://community.auth0.com/u/christina)\
**Replies:** 3\
**Last updated:** [July 21, 2022, 2:25am UTC](https://community.auth0.com/t/update-token-after-updating-user-info/87140 "2022-07-21T02:25:20Z")

</div>

When updating the currently logged in user information in our application, we are successfully sending the new information to Auth0, and we can see the user information in the dashboard get updated. However, the JWT tha…

---

## [Adding loginCounts to GET /userinfo response](https://community.auth0.com/t/adding-logincounts-to-get-userinfo-response/78645)

<div class="topic-metadata">

**Author:** [@roy2](https://community.auth0.com/u/roy2)\
**Replies:** 1\
**Last updated:** [February 23, 2022, 1:35am UTC](https://community.auth0.com/t/adding-logincounts-to-get-userinfo-response/78645 "2022-02-23T01:35:53Z")

</div>

Hi, I created the next rule: function addAttributes(user, context, callback) { context.idToken\['https://example.com/login\_counts'\] = context.stats.loginsCount || 0; context.idToken.login\_counts = context.stats.logi…

---

## [Unable to get userinfo returns 400 bad request](https://community.auth0.com/t/unable-to-get-userinfo-returns-400-bad-request/64134)

<div class="topic-metadata">

**Author:** [@y4m4](https://community.auth0.com/u/y4m4)\
**Replies:** 3\
**Last updated:** [June 10, 2021, 5:28pm UTC](https://community.auth0.com/t/unable-to-get-userinfo-returns-400-bad-request/64134 "2021-06-10T17:28:25Z")

</div>

I have been trying to battle with this issue, I verified that I do have "openid" scope as part of my JWT authorization flow. But I see the following errors POST /userinfo HTTP/1.1 Host: minio.us.auth0.com Authorization…

---

## [Implement session inactivity timeout](https://community.auth0.com/t/implement-session-inactivity-timeout/57673)

<div class="topic-metadata">

**Author:** [@mbabayev](https://community.auth0.com/u/mbabayev)\
**Replies:** 1\
**Last updated:** [February 27, 2021, 11:59am UTC](https://community.auth0.com/t/implement-session-inactivity-timeout/57673 "2021-02-27T11:59:41Z")

</div>

I want to Implement the session inactivity timeout by Rules. All our requests go to the “userInfo” endpoint. I need to save somewhere the timestamp of the previous userInfo request and run the rule at every new “userInf…

---

## [Userinfo request](https://community.auth0.com/t/userinfo-request/55370)

<div class="topic-metadata">

**Author:** [@rchamila](https://community.auth0.com/u/rchamila)\
**Replies:** 17\
**Last updated:** [January 6, 2021, 4:38pm UTC](https://community.auth0.com/t/userinfo-request/55370 "2021-01-06T16:38:39Z")

</div>

Hi, I’m trialling Python flask app with Auth0 and it seems userinfo request only returns roles in the response. I have checked this using a Postman request and it returns the same. Could you please clarify why is that? …

---

## [How to add the name field while creating the new user under users & role](https://community.auth0.com/t/how-to-add-the-name-field-while-creating-the-new-user-under-users-role/55785)

<div class="topic-metadata">

**Author:** [@vignesh.ramesh](https://community.auth0.com/u/vignesh.ramesh)\
**Replies:** 2\
**Last updated:** [January 6, 2021, 4:33pm UTC](https://community.auth0.com/t/how-to-add-the-name-field-while-creating-the-new-user-under-users-role/55785 "2021-01-06T16:33:50Z")

</div>

Hello!!! I just wanted to know that is there a way to add the name field of the user while creating the new user under users & role in Auth0 I have attached the screenshot for reference. I can see only the Email and pa…

---

## [/userinfo returns an empty object](https://community.auth0.com/t/userinfo-returns-an-empty-object/44608)

<div class="topic-metadata">

**Author:** [@ran](https://community.auth0.com/u/ran)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 8:44pm UTC](https://community.auth0.com/t/userinfo-returns-an-empty-object/44608 "2020-06-17T20:44:55Z")

</div>

Hi There! I’m new to the Auth concept but I’m trying to implement Auth and user information retrieval for an Alexa skill I’m working on. The Auth process works, and before redirecting the user back to the skill I am us…

---

## [How to define Scope on API login using Machine to Machine app](https://community.auth0.com/t/how-to-define-scope-on-api-login-using-machine-to-machine-app/20278)

<div class="topic-metadata">

**Author:** [@davidr1](https://community.auth0.com/u/davidr1)\
**Replies:** 1\
**Last updated:** [January 22, 2019, 12:29pm UTC](https://community.auth0.com/t/how-to-define-scope-on-api-login-using-machine-to-machine-app/20278 "2019-01-22T12:29:27Z")

</div>

I’m implementing an authentication challenge in an Apple Business Chat conversation I’m using a Machine to Machine app with the management API. Apple calls the authorize endpoint with the client ID of my Auth0 App - t…

---

## [User Search By Email](https://community.auth0.com/t/user-search-by-email/14384)

<div class="topic-metadata">

**Author:** [@sindoor.jagadeesh](https://community.auth0.com/u/sindoor.jagadeesh)\
**Replies:** 3\
**Last updated:** [August 16, 2018, 1:53pm UTC](https://community.auth0.com/t/user-search-by-email/14384 "2018-08-16T13:53:10Z")

</div>

How do we make the Search by user Auth0 operation case in-sensitive?

---

## [Email missing from OAuth response for Facebook login but present on dashboard](https://community.auth0.com/t/email-missing-from-oauth-response-for-facebook-login-but-present-on-dashboard/12510)

<div class="topic-metadata">

**Author:** [@daninfpj](https://community.auth0.com/u/daninfpj)\
**Replies:** 1\
**Last updated:** [June 21, 2018, 10:25pm UTC](https://community.auth0.com/t/email-missing-from-oauth-response-for-facebook-login-but-present-on-dashboard/12510 "2018-06-21T22:25:47Z")

</div>

The OAuth info that comes from a Facebook login is missing the email field. "email"=\>nil It’s similar to this issue: Email missing from profile created through Facebook login However in my case it happens every time a…

---

## [Get public profile url at /userInfo](https://community.auth0.com/t/get-public-profile-url-at-userinfo/11442)

<div class="topic-metadata">

**Author:** [@harald.andertun](https://community.auth0.com/u/harald.andertun)\
**Replies:** 1\
**Last updated:** [May 8, 2018, 12:52pm UTC](https://community.auth0.com/t/get-public-profile-url-at-userinfo/11442 "2018-05-08T12:52:26Z")

</div>

I initialise auth0 like this angularAuth0Provider.init({ clientID: \_\_env.auth0.clientId, domain: \_\_env.auth0.domain, responseType: 'token id\_token', audience: 'https://' + \_\_env.auth0.domain + '/userinfo…

---

## [How to get user information from Auth0 using Spring Boot?](https://community.auth0.com/t/how-to-get-user-information-from-auth0-using-spring-boot/9292)

<div class="topic-metadata">

**Author:** [@lucas.leon](https://community.auth0.com/u/lucas.leon)\
**Replies:** 1\
**Last updated:** [December 14, 2018, 6:11pm UTC](https://community.auth0.com/t/how-to-get-user-information-from-auth0-using-spring-boot/9292 "2018-12-14T18:11:34Z")

</div>

I’m making a platform with Auth0 + Vue + Spring Boot, and I have two types of user: Clients and Providers. I’m using the Auth0 part of this guide: auth0.com/blog/implementing-jwt-authentication-on-spring-boo‌​t I want …

---

## [Does the call to the /userinfo endpoint return a unique user identifier?](https://community.auth0.com/t/does-the-call-to-the-userinfo-endpoint-return-a-unique-user-identifier/8552)

<div class="topic-metadata">

**Author:** [@linrain1107](https://community.auth0.com/u/linrain1107)\
**Replies:** 1\
**Last updated:** [October 24, 2017, 10:38pm UTC](https://community.auth0.com/t/does-the-call-to-the-userinfo-endpoint-return-a-unique-user-identifier/8552 "2017-10-24T22:38:20Z")

</div>

I followed “Angular 2 Authentication Tutorial” and run it successfully. Does the “profile” that I get by this.auth0.client.userInfo(authResult.accessToken) contain a unique id? ex: {"sub":"google-oauth2|1169996786XXXX7…

---

## [Get user information on API](https://community.auth0.com/t/get-user-information-on-api/8513)

<div class="topic-metadata">

**Author:** [@dalvishaarad](https://community.auth0.com/u/dalvishaarad)\
**Replies:** 1\
**Last updated:** [October 19, 2017, 2:56pm UTC](https://community.auth0.com/t/get-user-information-on-api/8513 "2017-10-19T14:56:32Z")

</div>

I’m using Auth0 with a React SPA to authenticate my API. My scenario is that I’m only allowing social logins like Google and Facebook and no database authentication is allowed. In this case, if a user signs in for the fi…

---

## [401 when querying /userinfo with correct scope and RS256](https://community.auth0.com/t/401-when-querying-userinfo-with-correct-scope-and-rs256/8291)

<div class="topic-metadata">

**Author:** [@xmeninsuits](https://community.auth0.com/u/xmeninsuits)\
**Replies:** 2\
**Last updated:** [October 2, 2017, 9:40pm UTC](https://community.auth0.com/t/401-when-querying-userinfo-with-correct-scope-and-rs256/8291 "2017-10-02T21:40:07Z")

</div>

I’m querying the userinfo via the java authAPI with the following token eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik5rSkNOa000TVRJeU5EY3hNamt4TWpjMlF6WTVSVUU1T0VVM01VWTJSa1V5TnpjMk5qUTRPUSJ9.eyJpc3MiOiJodHRwczovL21lbm…

---

## [Custom claims in userinfo but not in ID token](https://community.auth0.com/t/custom-claims-in-userinfo-but-not-in-id-token/8198)

<div class="topic-metadata">

**Author:** [@per](https://community.auth0.com/u/per)\
**Replies:** 0\
**Last updated:** [September 15, 2017, 6:44pm UTC](https://community.auth0.com/t/custom-claims-in-userinfo-but-not-in-id-token/8198 "2017-09-15T18:44:47Z")

</div>

I’d like to include custom claims in the userinfo response. I have succeeded by creating a rule that adds a custom namespaced claim to the ID token. However, the claim also appears in the ID token (obviously). Is there a…

---

## [Getting /userinfo from frontend works, but not from backend](https://community.auth0.com/t/getting-userinfo-from-frontend-works-but-not-from-backend/8108)

<div class="topic-metadata">

**Author:** [@Maik\_Vogt](https://community.auth0.com/u/Maik_Vogt)\
**Replies:** 0\
**Last updated:** [September 6, 2017, 8:30pm UTC](https://community.auth0.com/t/getting-userinfo-from-frontend-works-but-not-from-backend/8108 "2017-09-06T20:30:30Z")

</div>

I use lock to authenticate on my angular frontend without any problems: lock = new Auth0Lock(AUTH\_CONFIG.clientID, AUTH\_CONFIG.domain, { oidcConformant: true, autoclose: true, socialButtonStyle: 'small', …

---

## [Call /user\_info vs implementing Rules](https://community.auth0.com/t/call-user-info-vs-implementing-rules/7631)

<div class="topic-metadata">

**Author:** [@mail3](https://community.auth0.com/u/mail3)\
**Replies:** 1\
**Last updated:** [July 29, 2017, 4:19am UTC](https://community.auth0.com/t/call-user-info-vs-implementing-rules/7631 "2017-07-29T04:19:03Z")

</div>

I’m just getting to grips with Auth0 (very impressed so far!) and have a general question around the best way to get user info. I have a SPA and an API. I’ve validated via the SPA and send the access\_token to my API (Na…

---

## [No ".sub" in silentAuthentication](https://community.auth0.com/t/no-sub-in-silentauthentication/7351)

<div class="topic-metadata">

**Author:** [@fredguth](https://community.auth0.com/u/fredguth)\
**Replies:** 5\
**Last updated:** [July 4, 2017, 12:11am UTC](https://community.auth0.com/t/no-sub-in-silentauthentication/7351 "2017-07-04T00:11:44Z")

</div>

I didn’t expect this behaviour: When I use passworldess\_login to get a token and then use the accessToken to get user info auth0.webAuth.client.userInfo, I get: Object {sub: "sms|574dfae283c90a8a88889fbd", name: "XXX",…

---

## [Get user info using authentication API](https://community.auth0.com/t/get-user-info-using-authentication-api/7153)

<div class="topic-metadata">

**Author:** [@wajira000](https://community.auth0.com/u/wajira000)\
**Replies:** 5\
**Last updated:** [June 21, 2017, 11:50am UTC](https://community.auth0.com/t/get-user-info-using-authentication-api/7153 "2017-06-21T11:50:04Z")

</div>

I’m new to the Auth0 and angularjs. I start a project using these two technology. I got a problem wile i’m doing this. I manage to get the security token using user name and password. I wanted a custom login page so I di…

---

## [Created\_at not returned in userInfo](https://community.auth0.com/t/created-at-not-returned-in-userinfo/6795)

<div class="topic-metadata">

**Author:** [@picosam](https://community.auth0.com/u/picosam)\
**Replies:** 1\
**Last updated:** [May 30, 2017, 10:03pm UTC](https://community.auth0.com/t/created-at-not-returned-in-userinfo/6795 "2017-05-30T22:03:41Z")

</div>

Hello, why isn’t the created\_at field returned when calling userInfo as indicated in the docs; only updated\_at? Here’s my code: private webAuth = new auth0.WebAuth({ domain: AUTH\_CONFIG.domain, clientID: AUTH\_CONFIG.…

---

## [How to retrieve user's id from mobile side?](https://community.auth0.com/t/how-to-retrieve-users-id-from-mobile-side/6412)

<div class="topic-metadata">

**Author:** [@sandy](https://community.auth0.com/u/sandy)\
**Replies:** 2\
**Last updated:** [May 30, 2017, 9:58pm UTC](https://community.auth0.com/t/how-to-retrieve-users-id-from-mobile-side/6412 "2017-05-30T21:58:23Z")

</div>

On the mobile side, I need to be able to have the user’s ID field so that I can use that information to query on another database. How can I get this data in the mobile code? Is there an Auth0 API to query this data base…

---

## [Trying to authenticate a user and get the user's info](https://community.auth0.com/t/trying-to-authenticate-a-user-and-get-the-users-info/6335)

<div class="topic-metadata">

**Author:** [@justin.zaun](https://community.auth0.com/u/justin.zaun)\
**Replies:** 1\
**Last updated:** [April 27, 2017, 11:13am UTC](https://community.auth0.com/t/trying-to-authenticate-a-user-and-get-the-users-info/6335 "2017-04-27T11:13:12Z")

</div>

I’m having trouble authenticating a user and getting the user’s information. First in the browser I’m using the SDK to authenticate. auth0 = new Auth0.WebAuth({ domain: 'domain.auth0.com', clientID: 'CLIENT\_ID', …
