# Audience without userinfo endpoint to use /api/v2/users/

**URL:** <https://community.auth0.com/t/audience-without-userinfo-endpoint-to-use-api-v2-users/65905>\
**Category:** Get Help\
**Created:** [July 9, 2021, 4:48pm UTC](https://community.auth0.com/t/audience-without-userinfo-endpoint-to-use-api-v2-users/65905 "2021-07-09T16:48:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorge.vazquez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jorge.vazquez/32/25731_2.png) [@jorge.vazquez](https://community.auth0.com/u/jorge.vazquez)\
**Post date:** [July 9, 2021, 4:48pm UTC](https://community.auth0.com/t/audience-without-userinfo-endpoint-to-use-api-v2-users/65905/1 "2021-07-09T16:48:03Z")

</div>

Hi everyone,

Im trying to list all the users with the /api/v2/users/ users but my access token comes with this structure:

{  
“[http://my-api.api/roles](http://my-api.api/roles)”: [  
“admin”,  
“user”  
],  
“[http://my-api.api/email](http://my-api.api/email)”: “my-email”,  
“iss”: “{auth-audience}”,  
“sub”: “user-id”,  
“aud”: [  
“[https://my-api.api](https://my-api.api)”,  
“{auth-audience}/userinfo”  
],  
“iat”: 1625848706,  
“exp”: 1625935106,  
“azp”: “Vk0cNhddmDAulI7mRdyVMe8oZ2YsvxKp”,  
“scope”: “openid profile email admin user”,  
“permissions”: [  
“read:messages”,  
“read:user\_idp\_tokens”,  
“read:users”  
]  
}

But to use the /api/v2/users I need the audience without the “/userinfo”. How I can take off the rute “/userinfo” from the audience string

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 12, 2021, 7:45pm UTC](https://community.auth0.com/t/audience-without-userinfo-endpoint-to-use-api-v2-users/65905/3 "2021-07-12T19:45:28Z")

</div>

Hi @jorge.vazquez,

Welcome to the Auth0 Community!

You need to send the Auth0 Management API identifier as the audience when you request the token.

Here is an example:

> **[Get Management API Access Tokens for Production](https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-access-tokens-for-production)**
>
> Learn how to get Access Tokens to make scheduled frequent calls to the Management API.

---

<div class="post-metadata">

**Author:** ![jorge.vazquez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jorge.vazquez/32/25731_2.png) [@jorge.vazquez](https://community.auth0.com/u/jorge.vazquez)\
**Post date:** [July 12, 2021, 8:49pm UTC](https://community.auth0.com/t/audience-without-userinfo-endpoint-to-use-api-v2-users/65905/4 "2021-07-12T20:49:49Z")

</div>

> [@dan.woda](#):
>
> Hi @jorge.vazquez,
> 
> Welcome to the Auth0 Community!
> 
> You need to send the Auth0 Management API identifier as the audience when you request the token.
> 
> Here is an example:

Thanks for ur help, with that information I could solved my problem!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 12, 2021, 8:50pm UTC](https://community.auth0.com/t/audience-without-userinfo-endpoint-to-use-api-v2-users/65905/5 "2021-07-12T20:50:29Z")

</div>

Let us know if you have any other questions!

---

<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 27, 2021, 8:50pm UTC](https://community.auth0.com/t/audience-without-userinfo-endpoint-to-use-api-v2-users/65905/6 "2021-07-27T20:50:43Z")

</div>

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