View a markdown version of this page

User background sessions - AWS IAM Identity Center

User background sessions

User background sessions allow a user to initiate a long-running job on an AWS managed application such as Amazon SageMaker Studio, without that user having to remain signed in while the job runs. The job runs immediately and uses the trusted identity propagation capability of IAM Identity Center to ensure that the user's permissions are maintained while the job is run in the background. The job can continue to run even if the user turns off their computer, their IAM Identity Center sign-in session expires, or the user signs out of the AWS access portal. This capability enables data scientists, machine learning engineers, and others to start analytics and machine learning workflows that run in the background without active user involvement.

User background sessions are turned on by default for new IAM Identity Center instances. For other instances, you turn them on in the IAM Identity Center console. Only the following supported AWS managed applications can use user background sessions. To use this capability, you must also set it up in each application. For more information, see the following:

The default session duration for user background sessions is 7 days. You can specify a different duration, from a minimum of 15 minutes to a maximum of 90 days. Custom duration values must be entered in minutes and be between 15 minutes and 129,600 minutes (90 days).

Keep in mind the following considerations for user background sessions:

  • A user background session can be created only when a user manually initiates a job in a supported application. For example, a user starts a Spark batch job in Amazon EMR or runs an AWS Glue ETL job. This capability is not currently supported for automated, scheduled workflows. The only exception right now is Amazon MWAA Serverless: scheduled runs use the user background session of the user who created or last updated the workflow. See Trusted identity propagation with Amazon MWAA Serverless.

  • For a list of AWS Regions that support user background sessions, see Supported AWS Regions.

  • You can view user background sessions in CloudTrail. For information, see Identifying user background session details.

  • You can also end active sessions for a user in your organization. For information, see End active sessions for your workforce users.

To configure the duration of a user background session
  1. Open the IAM Identity Center console.

  2. Choose Settings.

  3. On the Settings page, choose the Authentication tab.

  4. Under Authentication, next to Session duration, choose Configure. The Configure session duration dialog box appears.

  5. In the Configure session duration dialog box, if the Enable user background sessions check box is not already selected, select it. Clear the check box to disable user background sessions.

  6. Under User background sessions, choose the maximum session duration by selecting the drop-down arrow. Choose the length for the session, and then choose Save.

  7. You are returned to the Authentication tab. A green notification message appears above the tab indicates that the session settings were updated successfully.

Note
  • Current sessions are not affected if you disable user background sessions.

  • Changes to session duration apply only to new sessions. Current sessions keep their original duration.

  • A customer managed application can't create a user background session.