All Products
Search
Document Center

Resource Access Management:Adjust session duration and STS token validity

Last Updated:Jun 04, 2026

Session duration and STS token validity depend on your logon method. Adjust the relevant limiting factors to extend them.

RAM user logon

  • Limiting factors

    When a RAM user logs on with a username and password, the session duration is limited only by the Login session duration setting in the RAM security settings.

  • How to adjust

User SSO

  • Limiting factors

    When a user logs on via user-based SSO, the session duration is limited only by the Login session duration setting in the RAM security settings.

  • How to adjust

Role SSO

SAML role SSO

Console logon

  • Limiting factors

    When you log on to the console via role-based SSO, the session duration is limited by:

    The shortest value takes effect.

  • How to adjust

    Set all values to at least your desired duration:

    • Adjust the value of the SessionDuration attribute in the SAML assertion.

      Configure in your IdP.

    • Adjust the value of the SessionNotOnOrAfter attribute of the AuthnStatement element in the SAML assertion.

      Configure in your IdP.

    • Adjust the Login session duration in the RAM security settings.

    • Adjust the maximum session duration of the assumed role.

Programmatic access

  • Limiting factors

    When you call AssumeRoleWithSAML, the returned STS token validity is limited by:

    The shortest value takes effect.

  • How to adjust

    Set all values to at least your desired duration:

    • Adjust the value of the SessionNotOnOrAfter attribute of the AuthnStatement element in the SAML assertion.

      Configure in your IdP.

    • Adjust the maximum session duration of the assumed role.

    • Set the DurationSeconds parameter when you call the AssumeRoleWithSAML operation.

OIDC role SSO

Assuming a RAM role

Switching identity in the console

Programmatic access

  • Limiting factors

    When a RAM user calls AssumeRole, the returned STS token validity is limited by:

    The shortest value takes effect.

  • How to adjust

    Set both values to at least your desired duration:

    • Adjust the maximum session duration of the assumed role.

    • Set the DurationSeconds parameter when you call the AssumeRole operation.

Related topics

Basic concepts covers RAM users, RAM roles, user-based SSO, and role-based SSO.