Apply a custom permissions profile to a QuickSight role with the QuickSight API
After you create a custom permissions profile, use the QuickSight API to add or change the custom permissions profile that is assigned to a role.
Before you begin, you need to set up and configure the Amazon CLI. For more information about installing the Amazon CLI, see Install or update the latest version of the Amazon CLI and Configure the Amazon CLI in the Amazon Command Line Interface User guide. You also need permissions to use the QuickSight API.
The following example calls the UpdateRoleCustomPermission
API to update the custom permissions that are assigned to a role.
aws quicksight update-role-custom-permission \ --role
ROLE
\ --aws-account-idAWSACCOUNTID
\ --namespace default \ --custom-permissions-namePERMISSIONNAME
\ --regionREGION
The following example returns the custom permissions profile that is assigned to a role.
aws quicksight describe-role-custom-permission \ --role
ROLE
\ --aws-account-idAWSACCOUNTID
\ --namespace default \ --regionREGION
The following example deletes a custom permissions profile from a role.
aws quicksight delete-role-custom-permission \ --role
ROLE
\ --aws-account-idAWSACCOUNTID
\ --namespace default \ --regionREGION