I have an user group and as an author after creating Dashboard I shared dashboard to user group.
Now if I embed this dashboard using register user embedding What is the policy I need to add which allows any dashboard i share to user grup show allow automaticall without adding new dashboardIds in the policy.
In the below example I need to add dashboardIds for all new dashboards I created to allow access. But I don’t want to add erverytime manually in policy if I generate new dashboardId and sahre to usergroup.
{
“Action”: “quicksight:RegisterUser”,
“Resource”: “*”,
“Effect”: “Allow”
},
{
“Effect”: “Allow”,
“Action”: [
“quicksight:GenerateEmbedUrlForRegisteredUser”
],
“Resource”: [
“arn:{{partition}}:quicksight:{{region}}:{{accountId}}:namespace/{{namespace}}”,
“arn:{{partition}}:quicksight:{{region}}:{{accountId}}:dashboard/{{dashboardId-1}}”,
“arn:{{partition}}:quicksight:{{region}}:{{accountId}}:dashboard/{{dashboardId-2}}”
],