# Getting access token with scope in python

**URL:** <https://community.auth0.com/t/getting-access-token-with-scope-in-python/44391>\
**Category:** Get Help\
**Created:** [June 9, 2020, 4:58pm UTC](https://community.auth0.com/t/getting-access-token-with-scope-in-python/44391 "2020-06-09T16:58:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tserg](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tserg/32/21838_2.png) [@tserg](https://community.auth0.com/u/tserg)\
**Post date:** [June 9, 2020, 4:58pm UTC](https://community.auth0.com/t/getting-access-token-with-scope-in-python/44391/1 "2020-06-09T16:58:41Z")

</div>

Hi, I am following along the Python quickstart code. When I get the access token from auth0.authorize\_access\_token(), it does not contain information on the user’s roles and permissions. How can I get the access token with this information?

---

<div class="post-metadata">

**Author:** ![tserg](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tserg/32/21838_2.png) [@tserg](https://community.auth0.com/u/tserg)\
**Post date:** [June 10, 2020, 12:35am UTC](https://community.auth0.com/t/getting-access-token-with-scope-in-python/44391/2 "2020-06-10T00:35:05Z")

</div>

Found the answer:

I added the audience parameter in auth0.authorize\_redirect() with my API audience as the value. The JWT token now contains information on the user’s permissions.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 10, 2020, 10:07am UTC](https://community.auth0.com/t/getting-access-token-with-scope-in-python/44391/3 "2020-06-10T10:07:34Z")

</div>

Perfect! Glad you have figured it out and thanks for sharing that with the rest of community!

---

<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:** [June 25, 2020, 10:07am UTC](https://community.auth0.com/t/getting-access-token-with-scope-in-python/44391/4 "2020-06-25T10:07:36Z")

</div>

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