Manage users - Amazon SageMaker

Manage users

After your RStudio-enabled Amazon SageMaker Domain is running, you can add user profiles (UserProfiles) to the Domain. The following topics show how to create user profiles that are authorized to use RStudio, as well as update an existing user profile. For information on how to delete an RStudio App, UserProfile, or Domain, follow the steps in Delete an Amazon SageMaker Domain.

Note

The limit for the total number of UserProfiles in a Amazon SageMaker Domain is 60.

There are two types of users:

  • Unauthorized: This user cannot access the RStudio app.

  • Authorized: This user can access the RStudio app and use one of the RStudio license seats. By default, a new user is Authorized if the Domain is enabled for RStudio.

If a user is authorized, they can be given one of the following levels of access to RStudio.

  • RStudio User: This is a standard RStudio user and can access RStudio.

  • RStudio Admin: The admin of your Amazon SageMaker Domain has the ability to create users, add existing users, and update the permissions of existing users. Admins can also access the RStudio Administrative dashboard. However, this admin is not able to update parameters that are managed by Amazon SageMaker.

Methods to create a user

The following topics show how to create a user in your RStudio-enabled Amazon SageMaker Domain.

Create user console

To create a user in your RStudio-enabled Amazon SageMaker Domain from the console, complete the steps in Add user profiles.

Create user CLI

The following command shows how to add users to a Amazon SageMaker Domain with IAM authentication. A User can belong to either the R_STUDIO_USER or R_STUDIO_ADMIN User group.

aws sagemaker create-user-profile --region <REGION> \ --domain-id <DOMAIN-ID> \ --user-profile-name <USER_PROFILE_NAME-ID> \ --user-settings RStudioServerProAppSettings={UserGroup=<USER-GROUP>}

The following command shows how to add users to a Amazon SageMaker Domain with authentication using IAM Identity Center. A user can belong to either the R_STUDIO_USER or R_STUDIO_ADMIN User group.

aws sagemaker create-user-profile --region <REGION> \ --domain-id <DOMAIN-ID> \ --user-profile-name <USER_PROFILE_NAME-ID> \ --user-settings RStudioServerProAppSettings={UserGroup=<USER-GROUP>} \ --single-sign-on-user-identifier UserName \ --single-sign-on-user-value <USER-NAME>

Update existing user

You cannot update the authorization of an existing user. You must delete the existing user and create a new one with the updated authorization.

Log in to RStudio as another user

  1. Open the Amazon SageMaker console at https://console.aws.amazon.com/sagemaker/.

  2. Navigate to the Control Panel.

  3. Select a user name from the list of users. This opens a new page with details about the user profile and the apps that are running.

  4. Select the Launch App.

  5. From the dropdown, select RStudio to launch an RStudio instance.

Terminate sessions for another user

  1. From the list of running apps, identify the app you want to delete.

  2. Click the respective Delete app button for the app you are deleting.

Delete another user

You cannot delete a user if the user is running any apps. Delete all apps before attempting to delete a user.

  1. From the User Profile page, select Edit. This opens a new General settings page.

  2. Under Delete user, select Delete user.