# Get Public Name After Google Signin

**URL:** <https://forums.nylas.com/t/get-public-name-after-google-signin/522>\
**Category:** Question and Answers\
**Tags:** authentication\
**Created:** [October 19, 2024, 1:54am UTC](https://forums.nylas.com/t/get-public-name-after-google-signin/522 "2024-10-19T01:54:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mingzew](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mingzew](https://forums.nylas.com/u/mingzew)\
**Post date:** [October 19, 2024, 1:54am UTC](https://forums.nylas.com/t/get-public-name-after-google-signin/522/1 "2024-10-19T01:54:22Z")

</div>

I am using the hosted authentication and I’d like to get the public username after google signin. I’ve used this method mentioned in another post

> [@Logged in User Details](https://forums.nylas.com/t/logged-in-user-details/358):
>
> I am trying to use nodejs sdk but there’s no API for getting logged user info - like email or name

However, the decoded JWT token doesn’t have any name field nor picture field. I am using Java client. My project on google console have following scopes

/auth/userinfo.email  
/auth/userinfo.profile  
/auth/calendar  
/auth/calendar.events  
/auth/contacts.readonly

All of these are enabled on Nylas side too.

For me, the decoded JWT looks something like:

{  
“header” : {  
“alg” : “HS256”,  
“typ” : “JWT”  
},  
“payload” : {  
“at\_hash” : xxxxxxx,  
“aud” : “$nylas\_v3\_url”,  
“email” : [xxxx@gmail.com](mailto:xxxx@gmail.com),  
“exp” : xxxxxxx,  
“iat” : xxxxxx,  
“iss” : “nylas”,  
“provider” : “google”,  
“sub” : “xxxxxxxxxx”  
},  
“signature” : “xxxxxxxxxxxxxx”  
}

Following up question, will this work for MS and iCloud connectors too?

---

<div class="post-metadata">

**Author:** ![mingzew](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mingzew](https://forums.nylas.com/u/mingzew)\
**Post date:** [December 6, 2024, 5:58am UTC](https://forums.nylas.com/t/get-public-name-after-google-signin/522/2 "2024-12-06T05:58:50Z")

</div>

Any ideas? bumping this for more visibility

---

<div class="post-metadata">

**Author:** ![ram](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.nylas.com/ram/32/3_2.png) [@ram](https://forums.nylas.com/u/ram)\
**Post date:** [January 15, 2025, 6:57pm UTC](https://forums.nylas.com/t/get-public-name-after-google-signin/522/3 "2025-01-15T18:57:35Z")

</div>

Hi @mingzew this should be available now with additional scopes - have a look at our [changeling for details](https://developer.nylas.com/docs/new/release-notes/2024-11-05-new-in-nylas/#updated-grant-scope-requirement-for-profile-names).
