# How can I get a token with organization ID

**URL:** <https://community.auth0.com/t/how-can-i-get-a-token-with-organization-id/83128>\
**Category:** Get Help\
**Tags:** organizations, net-core, api, token-endpoint, auth0\
**Created:** [May 9, 2022, 2:58pm UTC](https://community.auth0.com/t/how-can-i-get-a-token-with-organization-id/83128 "2022-05-09T14:58:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![a19daniellr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/a19daniellr/32/37036_2.png) [@a19daniellr](https://community.auth0.com/u/a19daniellr)\
**Post date:** [May 9, 2022, 2:58pm UTC](https://community.auth0.com/t/how-can-i-get-a-token-with-organization-id/83128/1 "2022-05-09T14:58:02Z")

</div>

## Get token with OrganizationID.

I want to send a petition to an endpoint like: “[https://mydomain.com/oauth/token](https://mydomain.com/oauth/token)”. This endpoint have 2 headers that I need, username and password. I use the grant\_type=password header.  
I want to get a token with the organizationID, I know the organization of my user but I want to get the token calling this endpoint or other one with the email and password of the user and organizationID. How can I do that? I´m using [ASP.NET](http://ASP.NET) CORE 6.

---

<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:** [May 10, 2022, 12:59am UTC](https://community.auth0.com/t/how-can-i-get-a-token-with-organization-id/83128/4 "2022-05-10T00:59:02Z")

</div>

Hello @a19daniellr !

Unfortunately, the Resource Owner Password Grant is not supported in the context of Organizations as noted [here](https://auth0.com/docs/manage-users/organizations/organizations-overview#limitations).

The organization param is only supported through an /authorize request:

> **[Work with Tokens and Organizations](https://auth0.com/docs/manage-users/organizations/using-tokens#authenticate-users-through-an-organization)**
>
> Learn how tokens work with Auth0's Organizations feature and how to authenticate users belonging to an organization.

Hope this helps to clarify!

---

<div class="post-metadata">

**Author:** ![a19daniellr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/a19daniellr/32/37036_2.png) [@a19daniellr](https://community.auth0.com/u/a19daniellr)\
**Post date:** [May 10, 2022, 6:09am UTC](https://community.auth0.com/t/how-can-i-get-a-token-with-organization-id/83128/5 "2022-05-10T06:09:24Z")

</div>

Oh thank you ! I didn´t see that. Is there any way to do something similar ?

---

<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:** [May 25, 2022, 6:10am UTC](https://community.auth0.com/t/how-can-i-get-a-token-with-organization-id/83128/6 "2022-05-25T06:10:14Z")

</div>

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