# How do I set fixed length of access Token using pulumi/auth0?

**URL:** <https://community.auth0.com/t/how-do-i-set-fixed-length-of-access-token-using-pulumi-auth0/81181>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [April 5, 2022, 4:35pm UTC](https://community.auth0.com/t/how-do-i-set-fixed-length-of-access-token-using-pulumi-auth0/81181 "2022-04-05T16:35:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcus\_sensat](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcus_sensat/32/36405_2.png) [@marcus\_sensat](https://community.auth0.com/u/marcus_sensat)\
**Post date:** [April 5, 2022, 4:35pm UTC](https://community.auth0.com/t/how-do-i-set-fixed-length-of-access-token-using-pulumi-auth0/81181/1 "2022-04-05T16:35:56Z")

</div>

We provision using pulumi/auth0 using Typescript. Using the Tenant settings ([auth0.Tenant | Pulumi Registry](https://www.pulumi.com/registry/packages/auth0/api-docs/tenant/)) there is no option to set a “migrations” value or anything similar to the yaml value “issue\_opaque\_access\_tokens: true” as recommended here: [How to disable Fixed Length of Access Token & Authorization Code in the tenant.yaml](https://community.auth0.com/t/how-to-disable-fixed-length-of-access-token-authorization-code-in-the-tenant-yaml/79243).

Are some settings UI only as there are gaps in pulumi/auth0?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 5, 2022, 5:55pm UTC](https://community.auth0.com/t/how-do-i-set-fixed-length-of-access-token-using-pulumi-auth0/81181/3 "2022-04-05T17:55:47Z")

</div>

Hi @marcus_sensat,

Welcome to the Auth0 Community!

I understand you would like to set the Fixed Length of Access Token on your tenant using the Auth0 Deploy CLI.

To do so, you will need to set `issue_opaque_access_tokens: true` in `migrations` in your _tenant.yaml_ file. For example:

```auto
migrations:
  issue_opaque_access_tokens: true

```

Alternatively, you could navigate to your [Auth0 Dashboard \> Settings \> Advanced](https://manage.auth0.com/#/tenant/advanced) and scroll to the Migrations section and enable the **Fixed Length of Access Token & Authorization Code**.

Does that help?

Thanks.

---

<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:** [December 22, 2022, 9:28am UTC](https://community.auth0.com/t/how-do-i-set-fixed-length-of-access-token-using-pulumi-auth0/81181/4 "2022-12-22T09:28:06Z")

</div>


