# How to get organization parameters in access token - React Native SDK Auth0

**URL:** <https://community.auth0.com/t/how-to-get-organization-parameters-in-access-token-react-native-sdk-auth0/91593>\
**Category:** Get Help\
**Created:** [September 30, 2022, 8:08am UTC](https://community.auth0.com/t/how-to-get-organization-parameters-in-access-token-react-native-sdk-auth0/91593 "2022-09-30T08:08:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashokkumar.kandasamy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ashokkumar.kandasamy/32/33320_2.png) [@ashokkumar.kandasamy](https://community.auth0.com/u/ashokkumar.kandasamy)\
**Post date:** [September 30, 2022, 8:08am UTC](https://community.auth0.com/t/how-to-get-organization-parameters-in-access-token-react-native-sdk-auth0/91593/1 "2022-09-30T08:08:35Z")

</div>

- Which SDK this is regarding:  
React Native Auth0 SDK

- SDK Version:  
NPM = react-native-auth0  
Version = 2.13.3

- Code Snippets/Error Messages/Supporting Details/Screenshots:

Hi,

I am integrating Auth0 for Mobile apps using React Native Auth0 SDK, I did integration and all works.

But my token is not included Org params in access token once decoding it.

Code:

```auto
auth0.webAuth
      .authorize({
        scope: 'openid profile email offline_access',
        audience: 'https://xyazzzzz.com',
      })

```

It included org parameter only if I send AuthExternalID - called Organization ID as parameter in authorise call.

Its not possible to get organizationID without authenticating with Auth0 as my platform API’s are required access token to get list of Organizations for particular user.

```auto
auth0.webAuth
      .authorize({
        scope: 'openid profile email offline_access',
        audience: 'https://xyazzzzz.com',
        organization: organizationID,
      })

```

---

<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:** [October 7, 2022, 1:34am UTC](https://community.auth0.com/t/how-to-get-organization-parameters-in-access-token-react-native-sdk-auth0/91593/3 "2022-10-07T01:34:40Z")

</div>

Hello @ashokkumar.kandasamy welcome to the community!

> [@ashokkumar.kandasamy](#):
>
> It included org parameter only if I send AuthExternalID - called Organization ID as parameter in authorise call.

That’s correct that in order to include the `org_id` in a token, it will need to be included in the authorize call one way or another.

[https://community.auth0.com/t/authenticating-users-through-a-specific-organization/84679](https://community.auth0.com/t/authenticating-users-through-a-specific-organization/84679)

If you feel there is a gap in the Organization feature as is, I definitely recommend scanning through through and opening up a [feedback request](https://community.auth0.com/c/feedback/95) if you don’t see something similar as we monitor these for community engagement - If there is something you’d like to see I’m sure other community members would as well 🙂

---

<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:** [October 21, 2022, 1:35am UTC](https://community.auth0.com/t/how-to-get-organization-parameters-in-access-token-react-native-sdk-auth0/91593/4 "2022-10-21T01:35:11Z")

</div>

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