Modifying access token expiration for External Applications (OAuth)

How to modify when the access token expires for External Applications (OAuth)?

Modifying the access token lifetime depends on the deployment type:

Standalone Orchestrator

Run the following SQL command to change the lifetime (in seconds), replacing 'EXTERNAL_APPLICATION_CLIENT_ID' with the ID set in Orchestrator and [uipath] with the proper database name:

UPDATE [uipath].[identity].[Clients]
  SET [AccessTokenLifetime] = 7200
  WHERE [ClientId]='EXTERNAL_APPLICATION_CLIENT_ID'

Automation Cloud

It is not possible to change the lifetime of the access token. By default it is set to one hour.