# Pulling user auth0 sub from OAuth2.0 plugin

**URL:** https://meta.discourse.org/t/pulling-user-auth0-sub-from-oauth2-0-plugin/355903
**Category:** Development
**Created:** [March 5, 2025, 6:15pm UTC](https://meta.discourse.org/t/pulling-user-auth0-sub-from-oauth2-0-plugin/355903 "2025-03-05T18:15:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jafab](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@jafab](https://meta.discourse.org/u/jafab)
#### Post date: [March 5, 2025, 6:15pm UTC](https://meta.discourse.org/t/pulling-user-auth0-sub-from-oauth2-0-plugin/355903/1 "2025-03-05T18:15:34Z")

</div>

Hello! I am trying to make an api call to an external website that requires the discourse user’s auth0 sub as a parameter. I currently have local signup disabled (so all discourse users are logged in through auth0). [OAuth2.0 plugin](https://meta.discourse.org/t/discourse-oauth2-basic/33879)

On my discourse instance, how can I access the current user’s auth0 sub to then pass to said api call?

Any help is greatly appreciated! Thank you!
