HOW TO

Update the maximum expiration time allowed for ArcGIS tokens in an ArcGIS Online organization using Postman

Last Published: October 15, 2025

Summary

An ArcGIS token is a string of encrypted information created using credentials for a user and is required to access a secure resource through different clients. Each token has an expiration time. In ArcGIS Online, the maximum expiration time is determined by the maxTokenExpirationMinutes property for the organization as shown in the image below.

The expiration time of the token in REST API.

When generating tokens, users can specify the expiration time for the token up to the value set by the maxTokenExpirationMinutes property in the organization settings. For more details, please refer to ArcGIS REST APIs: /generateToken: Generate Token.

This article provides the workflow to update the maximum expiration time that can be set when generating for ArcGIS tokens using Postman.

Note: 
The maxTokenExpirationMinutes cannot be extended beyond two weeks which is the maximum allowed by ArcGIS Online. Setting a higher value will be rejected and will not update this property.
Note: 
The maxTokenExpirationMinutes does not impact expiration of tokens generated by the system in ArcGIS Online or other ArcGIS apps. 

Procedure

  1. Launch Postman, paste the following URL in the Enter request URL bar, and replace SHORTNAME with the short name of the organization.
https://SHORTNAME.maps.arcgis.com/sharing/rest/portals/self/update
  1. On the left of the Enter request URL bar, select POST from the drop-down list and click Send.
The Enter request URL bar in Postman.
  1. On the Body tab, update the maxTokenExpirationMinutes field with the desired value in minutes.
The maxTokenExpirationMinutes property on the Body tab in Postman.
Note: 
To revert the property to the default value (two weeks), type -1 for maxTokenExpirationMinutes in the VALUE column. Any expiration time exceeding two weeks cannot be specified in the ArcGIS Online organization.

Article ID: 000026332

Software:
  • ArcGIS Online

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options