# How to get OKTA I'd for gmail user profile

**URL:** <https://devforum.okta.com/t/how-to-get-okta-id-for-gmail-user-profile/13867>\
**Category:** Questions\
**Created:** [April 19, 2021, 9:18pm UTC](https://devforum.okta.com/t/how-to-get-okta-id-for-gmail-user-profile/13867 "2021-04-19T21:18:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravisharma.raj](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@Ravisharma.raj](https://devforum.okta.com/u/Ravisharma.raj)\
**Post date:** [April 19, 2021, 9:18pm UTC](https://devforum.okta.com/t/how-to-get-okta-id-for-gmail-user-profile/13867/1 "2021-04-19T21:18:33Z")

</div>

How can I get the OKTA I’d for the user profile for an which the auth is done through google account. Can I use get user api with email address to get the full profile added to OKTA directory.

---

<div class="post-metadata">

**Author:** ![Lijia](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/lijia/32/2295_2.png) [@Lijia](https://devforum.okta.com/u/Lijia)\
**Post date:** [April 20, 2021, 9:23pm UTC](https://devforum.okta.com/t/how-to-get-okta-id-for-gmail-user-profile/13867/2 "2021-04-20T21:23:26Z")

</div>

@Ravisharma.raj Can you please refer the API doc [here](https://developer.okta.com/docs/reference/api/oidc/#userinfo)?  
You can try and test in postman with /userinfo endpoint and see if it returns the expected results.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 7, 2024, 12:11am UTC](https://devforum.okta.com/t/how-to-get-okta-id-for-gmail-user-profile/13867/3 "2024-02-07T00:11:53Z")

</div>

Closed on February 7, 2024, 12:11am UTC


