Grant Your Users Permissions to Send Predictions to Amazon QuickSight - Amazon SageMaker
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Grant Your Users Permissions to Send Predictions to Amazon QuickSight

You must grant your SageMaker Canvas users permissions to send batch predictions to Amazon QuickSight. In Amazon QuickSight, users can create analyses and reports with a dataset and prepare dashboards to share their results. For more information about sending prediction to QuickSight for analysis, see Send predictions to Amazon QuickSight.

To grant the necessary permissions to share batch predictions with users in QuickSight, you must add a permissions policy to the Amazon Identity and Access Management (IAM) execution role that you’ve used for the user profile. The following section shows you how to attach a least-permissions policy to your role.

Add the permissions policy to your IAM role

To add the permissions policy, use the following procedure:
  1. Sign in to the IAM console at https://console.amazonaws.cn/iam/.

  2. Choose Roles.

  3. In the search box, search for the user's IAM role by name and select it.

  4. On the page for the user's role, under Permissions, choose Add permissions.

  5. Choose Create inline policy.

  6. Select the JSON tab, and then paste the following least-permissions policy into the editor. Replace the placeholders <your-account-number> with your own Amazon account number.

    { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "quicksight:CreateDataSet", "quicksight:ListUsers", "quicksight:ListNamespaces", "quicksight:CreateDataSource", "quicksight:PassDataSet", "quicksight:PassDataSource" ], "Resource":[ "arn:aws:quicksight:*:<your-account-number>:datasource/*", "arn:aws:quicksight:*:<your-account-number>:user/*", "arn:aws:quicksight:*:<your-account-number>:namespace/*", "arn:aws:quicksight:*:<your-account-number>:dataset/*" ] } ] }
  7. Choose Review policy.

  8. Enter a Name for the policy.

  9. Choose Create policy.

You should now have a customer-managed IAM policy attached to your execution role that grants your Canvas users the necessary permissions to send batch predictions to users in QuickSight.