# Why is there an organization property in the Python SKD's client credential flow?

**URL:** <https://community.auth0.com/t/why-is-there-an-organization-property-in-the-python-skds-client-credential-flow/134158>\
**Category:** Get Help\
**Tags:** auth0-python, sdks-quickstarts\
**Created:** [May 15, 2024, 8:27am UTC](https://community.auth0.com/t/why-is-there-an-organization-property-in-the-python-skds-client-credential-flow/134158 "2024-05-15T08:27:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![magic\_al](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@magic\_al](https://community.auth0.com/u/magic_al)\
**Post date:** [May 15, 2024, 8:27am UTC](https://community.auth0.com/t/why-is-there-an-organization-property-in-the-python-skds-client-credential-flow/134158/1 "2024-05-15T08:27:43Z")

</div>

I found an `organization` property in the [Python SKD’s client credential flow](https://github.com/auth0/auth0-python/blob/6b1199fc74a8d2fc6655ffeef09ae961dc0b8c37/auth0/authentication/get_token.py#L94).

I doesn’t have any effect when setting it even though the doc block says:

> organization (str, optional): Optional Organization name or ID. When included, the access token returned will include the org\_id and org\_name claims

How can I use it? I don’t see any option to assign an client app to an organisation in Auth0.

Thanks!

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [June 28, 2024, 4:20pm UTC](https://community.auth0.com/t/why-is-there-an-organization-property-in-the-python-skds-client-credential-flow/134158/2 "2024-06-28T16:20:19Z")

</div>

Hi @magic_al

Welcome to the Auth0 Community!

By going to the Application settings, you can specify the behavior of the application with the organizations. You can read more about this feature here → [Define Organization Behavior](https://auth0.com/docs/manage-users/organizations/configure-organizations/define-organization-behavior)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![mreardon](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mreardon/32/58369_2.png) [@mreardon](https://community.auth0.com/u/mreardon)\
**Post date:** [July 6, 2024, 8:00pm UTC](https://community.auth0.com/t/why-is-there-an-organization-property-in-the-python-skds-client-credential-flow/134158/4 "2024-07-06T20:00:15Z")

</div>

I don’t think this answer applies to the original question. It doesn’t appear that applications can use the client credentials grant type with organizations, so it doesn’t seem to make sense that the `client_credentials` method has an organization argument. [auth0-python/auth0/authentication/get\_token.py at 6b1199fc74a8d2fc6655ffeef09ae961dc0b8c37 · auth0/auth0-python · GitHub](https://github.com/auth0/auth0-python/blob/6b1199fc74a8d2fc6655ffeef09ae961dc0b8c37/auth0/authentication/get_token.py#L90C9-L90C27)

Am I missing something? I see this in the application settings on the organizations tab unless client credentials grants are disabled.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/0/5/0583bda25ac3d76e225e084f4842a61f1cd7b1bd.png)

---

<div class="post-metadata">

**Author:** ![magic\_al](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@magic\_al](https://community.auth0.com/u/magic_al)\
**Post date:** [July 8, 2024, 5:16am UTC](https://community.auth0.com/t/why-is-there-an-organization-property-in-the-python-skds-client-credential-flow/134158/5 "2024-07-08T05:16:53Z")

</div>

Hi @dawid.matuszczyk , thanks for the reply. But @mreardon is exactly right. It’s the organisation id specifically in the client credential flow is what I’m wondering about.

AFAIK there is no way to assign a client app to an organisation even though that has been a long requested feature: [Client Credentials Flow for Organisation - #10 by TacoEater](https://community.auth0.com/t/client-credentials-flow-for-organisation/66390/10)

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [July 8, 2024, 6:38pm UTC](https://community.auth0.com/t/why-is-there-an-organization-property-in-the-python-skds-client-credential-flow/134158/6 "2024-07-08T18:38:41Z")

</div>

HI @magic_al and @mreardon

I’m sorry for the confusion on my side; I misunderstood the question. However, I’ve contacted our Product Department, who informed me that the Client’s Credential Flow support for Organization is right now in the private Early Access, which you can join by contacting your Auth0 account manager. If you can wait, the General Access for this feature is expected to launch during the second half of this year. I’ve checked the git blame for that line, and it has been added to support the clients’ credential flow for the organization.

 ![Screenshot 2024-07-08 at 20.37.32](https://global.discourse-cdn.com/auth0/original/3X/0/d/0d4c81d93e25714a2d2e4621a38b6ec5a8c8d809.png)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![mreardon](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mreardon/32/58369_2.png) [@mreardon](https://community.auth0.com/u/mreardon)\
**Post date:** [July 9, 2024, 2:25am UTC](https://community.auth0.com/t/why-is-there-an-organization-property-in-the-python-skds-client-credential-flow/134158/7 "2024-07-09T02:25:04Z")

</div>

That’s great news. Thank you @dawid.matuszczyk

---

<div class="post-metadata">

**Author:** ![magic\_al](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@magic\_al](https://community.auth0.com/u/magic_al)\
**Post date:** [July 9, 2024, 5:30am UTC](https://community.auth0.com/t/why-is-there-an-organization-property-in-the-python-skds-client-credential-flow/134158/8 "2024-07-09T05:30:47Z")

</div>

Indeed, that’s great news. Thanks a lot. I already went ahead and requested early access 🙂

Thanks @dawid.matuszczyk !

---

<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:** [July 23, 2024, 5:31am UTC](https://community.auth0.com/t/why-is-there-an-organization-property-in-the-python-skds-client-credential-flow/134158/9 "2024-07-23T05:31:10Z")

</div>

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