How to resolve the error: ‘This user has exceeded the number of active access tokens for this role’

Scenario: While running ‘gulp extension:fetch’ command, an error will be displayed in the terminal, saying the number of active access tokens has exceeded.

Reason: Once you have used all permitted number of tokens for the current role, there will show ‘number of active access tokens exceeded’ error.

Solution: To resolve the error, we need to inactivate an existing active token.

To make a token inactive:

  1. Go to Setup –> Users/Roles –> Access Tokens
  2. Click on the ‘Edit’ button of any active token for the current user and role.
  3. Check the ‘Inactive’ check box and save.

Now you can create a new token to fetch and deploy your theme or extension.

Leave a comment

Your email address will not be published. Required fields are marked *