---
title: "Set Max User Session Timeout policy."
method: PUT
path: "/v1/policies/maxUserSessionTimeout"
tags: ["policiesManagement"]
---

# Set Max User Session Timeout policy.

`PUT /v1/policies/maxUserSessionTimeout`

Set the Max User Session Timeout policy. When enabled, this policy sets the maximum web session timeout users are able to configure within their user preferences. Users preferences will be updated to match this value only if their current preference is set to a higher value. [Learn More](https://help.sumologic.com/Manage/Security/Set_a_Maximum_Web_Session_Timeout)

## Request body

- MaxUserSessionTimeoutPolicy — Max User Session Timeout policy.
  - `maxUserSessionTimeout` string, required — Maximum web session timeout users are able to configure within their user preferences. Valid values are: `5m`, `15m`, `30m`, `1h`, `2h`, `6h`, `12h`, `1d`, `2d`, `3d`, `5d`, or `7d`

## Response `200`

Max User Session Timeout policy was set successfully.

- MaxUserSessionTimeoutPolicy — Max User Session Timeout policy.
  - `maxUserSessionTimeout` string, required — Maximum web session timeout users are able to configure within their user preferences. Valid values are: `5m`, `15m`, `30m`, `1h`, `2h`, `6h`, `12h`, `1d`, `2d`, `3d`, `5d`, or `7d`

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/revisions/18a824df1e78/schema)
