# Setting Tenant session duration

## Managing Tenant session duration

In the DuploCloud Portal, configure the session duration time for all Tenants or a single Tenant. At the end of a session, the Tenants or Tenant ceases to be active for a particular user, application, or Service.

For more information about IAM roles and session times in relation to a user, application, or Service, see the [AWS Documentation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html).

### Configuring session duration for all Tenants

1. In the DuploCloud Portal, navigate to **Administrator** -> **System Settings**. The **System Settings** page displays.
2. Click the **System Config** tab.
3. Click **Add**. The **App Config** pane displays.<br>

   <div align="left"><figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F4cJQlYBuiviLd2BZfR6z%2Fscreenshot-nimbusweb.me-2024.02.27-12_48_30.png?alt=media&#x26;token=fe4beade-7d41-4f19-a977-3633c404a7f7" alt=""><figcaption><p><strong>Add Config</strong> pane to set Key <strong>AWS Role Max Session Duration</strong> for all <strong>Tenants</strong><br></p></figcaption></figure></div>
4. From the **Config Type** list box, select **AppConfig**.
5. From the **Key** list box, select **AWS Role Max Session Duration**.
6. From the **Select Duration Hour** list box, select the maximum session time in hours or set a **Custom Duration** in seconds.
7. Click **Submit**. The **AWS Role Max Session Duration** and **Value** are displayed in the **System Config** tab. Note that the **Value** you set for maximum session time in hours is displayed in seconds. You can **Delete** or **Update** the setting in the row's **Actions** menu.

<figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fnd4wtyzcM0GHZ6grsFLR%2Fscreenshot-nimbusweb.me-2024.02.27-12_59_36.png?alt=media&#x26;token=c45138de-af0a-4dfb-94d2-67ae477d3e69" alt=""><figcaption><p><strong>System Config</strong> tab on <strong>System Settings</strong> page displaying <strong>MaximumSessionDuration</strong> for all Tenants</p></figcaption></figure>

### Configuring session duration for a single Tenant

1. In the DuploCloud Portal, navigate to **Administrator** -> **Tenants**. The **Tenants** page displays.
2. From the **Name** column, select the Tenant for which you want to configure session duration time.
3. Click the **Settings** tab.
4. Click **Add**. The **Add Tenant Feature** pane displays.<br>

   <div align="left"><figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FPFPtz8pBRFJCX2uplPcR%2Fscreenshot-nimbusweb.me-2024.02.27-12_45_39.png?alt=media&#x26;token=e0c2dcf1-e729-4410-af14-30aa1a60fd68" alt=""><figcaption><p>Add Tenant Feature pane to set <strong>AWS Role Max Session Duration</strong> for a single Tenant<br></p></figcaption></figure></div>
5. From the **Select Feature** list box, select **AWS Role Max Session Duration**.
6. From the **Select Duration Hour** list box, select the maximum session time in hours or set a **Custom Duration** in seconds.
7. Click **Add**. The **AWS Role Max Session Duration** and **Value** are displayed in the **Settings** tab. Note that the **Value** you set for maximum session time in hours is displayed in seconds. You can **Delete** or **Update** the setting in the row's **Actions** menu.

<figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F2V9sv8YQQ0gSQ8sYEzge%2FTEX.png?alt=media&#x26;token=ea40db26-59c2-45ef-916c-33b5234d4617" alt=""><figcaption><p>The <strong>Tenants</strong> details page with <strong>AWS Role Max Session Duration</strong> enabled</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/overview/use-cases/tenant-environment/tenant-session-duration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
