ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Core.Portal Namespace / PortalInfo Class / MaxTokenExpirationMinutes Property

In This Topic
    MaxTokenExpirationMinutes Property
    In This Topic
    Gets the maximum validity in minutes of tokens issued for users of the organization. If the user is NOT signed on -1 (the default) is always returned.
    Syntax
    public int MaxTokenExpirationMinutes {get;}
    Public ReadOnly Property MaxTokenExpirationMinutes As Integer
    Remarks
    -1 is the default and is a special value that indicates infinite timeout or permanent tokens. For tokens granted using OAuth2 authorization grant, it represents the maximum validity of refresh tokens. For access tokens, the maximum validity is the lower of two weeks or this value.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also