# Get user access token

**URL:** <https://community.auth0.com/t/get-user-access-token/110602>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [July 5, 2023, 1:51pm UTC](https://community.auth0.com/t/get-user-access-token/110602 "2023-07-05T13:51:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fjingsheng](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@fjingsheng](https://community.auth0.com/u/fjingsheng)\
**Post date:** [July 5, 2023, 1:51pm UTC](https://community.auth0.com/t/get-user-access-token/110602/1 "2023-07-05T13:51:51Z")

</div>

Hi  
Is it possible to get user access token by email address or sub Id?

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [July 5, 2023, 7:09pm UTC](https://community.auth0.com/t/get-user-access-token/110602/3 "2023-07-05T19:09:46Z")

</div>

Hi there @fjingsheng !

> [@fjingsheng](#):
>
> Is it possible to get user access token by email address or sub Id?

Are you able to elaborate a bit on the use case here? Both an email address and `sub` exist as claims in an access token, and you can certainly use an email as part of a login flow to obtain an access token.

---

<div class="post-metadata">

**Author:** ![fjingsheng](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@fjingsheng](https://community.auth0.com/u/fjingsheng)\
**Post date:** [July 6, 2023, 2:29am UTC](https://community.auth0.com/t/get-user-access-token/110602/4 "2023-07-06T02:29:42Z")

</div>

In this flow we don’t need user involved to provide the password or verification code. We only have the emailEmail and `sub` Id, are we able to get the access token for the given user via management api?  
Thanks

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [July 21, 2023, 9:45pm UTC](https://community.auth0.com/t/get-user-access-token/110602/5 "2023-07-21T21:45:35Z")

</div>

Hey there @fjingsheng sorry for the delayed response here. You won’t be able to get an access token for a user with just their `email` and `sub` - If the user is already authenticated and has an existing session, you could look into using [silent auth](https://auth0.com/docs/authenticate/login/configure-silent-authentication) as a means to get an access token.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 4, 2023, 9:46pm UTC](https://community.auth0.com/t/get-user-access-token/110602/6 "2023-08-04T21:46:14Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
