CLI query by few values

Hi there,

I would like to query permissions by two principals. At the moment I use this line to get permissions for one principal:

aws quicksight describe-dashboard-permissions --aws-account-id=******* --dashboard-id=******* --region eu-west-1 --query "Permissions[?Principal=='$T_USER']"

however I would like to add another principal to the query ‘$S_USER’. How can I do it?

Cheers,
Art

You can modify your command to use ||

aws quicksight describe-dashboard-permissions --aws-account-id=******* --dashboard-id=******* --region eu-west-1 --query "Permissions[?Principal=='$T_USER' || Principal=='$S_USER']"

Much appreciated !
Best,
Art