# Can't set the default audience for a tenant

**URL:** <https://community.auth0.com/t/cant-set-the-default-audience-for-a-tenant/91159>\
**Category:** Get Help\
**Created:** [September 22, 2022, 8:43pm UTC](https://community.auth0.com/t/cant-set-the-default-audience-for-a-tenant/91159 "2022-09-22T20:43:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan-cahill](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ryan-cahill/32/14566_2.png) [@ryan-cahill](https://community.auth0.com/u/ryan-cahill)\
**Post date:** [September 22, 2022, 8:43pm UTC](https://community.auth0.com/t/cant-set-the-default-audience-for-a-tenant/91159/1 "2022-09-22T20:43:13Z")

</div>

It is explained that the default audience in tenant settings should be an API identifier. An API identifier can be a string like “my-cool-api” but the default audience only accepts a string in the format of a uri. So if I wanted the default audience to be “my-cool-api” I would see the error ““Default Audience” must be a valid uri”.

I am confused by this inconsistency. Could someone shed some light on this?

---

<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:** [September 22, 2022, 9:21pm UTC](https://community.auth0.com/t/cant-set-the-default-audience-for-a-tenant/91159/3 "2022-09-22T21:21:09Z")

</div>

Hi there @ryan-cahill welcome to the community!

I am seeing the same behavior you are - It looks like it’s only validated on the client side so using the management API to set a non-uri `default_audience` will work.

```auto
curl -H "Authorization: Bearer <token>" -X PATCH -H "Content-Type: application/json" -d '{"default_audience":"<the audience>"}' https://YOUR_DOMAIN.auth0.com/api/v2/tenants/settings
 

```

Hope this helps!

---

<div class="post-metadata">

**Author:** ![ryan-cahill](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ryan-cahill/32/14566_2.png) [@ryan-cahill](https://community.auth0.com/u/ryan-cahill)\
**Post date:** [September 22, 2022, 9:47pm UTC](https://community.auth0.com/t/cant-set-the-default-audience-for-a-tenant/91159/4 "2022-09-22T21:47:07Z")

</div>

Hey @ty.frith thanks for the suggestion. Instead, I already found similar issues that have been open since 2020 and created a new API with a random URL.

> [@Bug? Cannot Set Tenant Default Audience (any more)](https://community.auth0.com/t/bug-cannot-set-tenant-default-audience-any-more/42307):
>
> I have an existing Auth0 integration which has been working fine. It has an API with an identifier like my-api (notice, it is not a uri). The Tenant Default Audience is my-api. This has been working for well over a year. Today we tried to setup a new tenant. We created an api with the identifier my-other-api. I then tried to set the Tenant Default Audience to my-other-api. It threw an error saying the default audience must be a valid uri. Odd. So I tried setting the default audience to the ur…

> [@Format for "default audience" must be URI. But API Identified can be standard string](https://community.auth0.com/t/format-for-default-audience-must-be-uri-but-api-identified-can-be-standard-string/43324):
>
> It is explained that the default audience in tenant settings should be an API identifier. An API identifier can be a string like “my-cool-api” but the default audience only accepts a string in the format of a uri. So if I wanted the default audience to be “my-cool-api” I would see the error ““Default Audience” must be a valid uri”. I am confused by this inconsistency. Could someone shed some light on this?

Can your team please fix this issue? I don’t need help with this anymore, but this is an incredibly confusing UX.

---

<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:** [September 22, 2022, 11:05pm UTC](https://community.auth0.com/t/cant-set-the-default-audience-for-a-tenant/91159/5 "2022-09-22T23:05:06Z")

</div>

Thanks for the follow up! It looks like this is in the backlog to be addressed - Sorry for the confusion!

---

<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 6, 2022, 11:05pm UTC](https://community.auth0.com/t/cant-set-the-default-audience-for-a-tenant/91159/6 "2022-10-06T23:05:49Z")

</div>

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