Set Discoverable in QuickSight programatically

Is it possible to share a dashboard via CLI with “Discoverable in QuickSight” disabled?

Use case: We provide a default set of dashboards that we share with our clients by adding them to the group. Then we make the dashboards accessible on our website using the embedding dashboard feature. This works just fine. But we want to add them the ability to create their own dashboards via the embedding authoring feature. But we do not want them to see the default set of dashboards there. So it is possible to disable “Discoverable in QuickSight” in the default dashboards programmatically? I refer to this feature in the QS console UI:

It doesn’t seem like there is the ability to do that via the cli now.

However, after looking at the api calls it looks like it makes the same api call with a slightly different payload.

Here is the api call to share with everyone in the account.

And here is the one to make it discoverable in quicksight.

The first one grants like permissions.

The second grants permissions.

Maybe something to work with.

Thank you. I’ve tried it, but unfortunately, the LinkSharing is working just with namespaces. Even if it is written in the documentation, it should also work with users and groups.

I got:

An error occurred (InvalidParameterValueException) when calling the UpdateDashboardPermissions operation: Principal arn:aws:quicksight:us-east-1:133301937439:group/abc is not allowed in Link Permissions.

An error occurred (InvalidParameterValueException) when calling the UpdateDashboardPermissions operation: Principal arn:aws:quicksight:us-east-1:133301937439:user/xyz is not allowed in Link Permissions.

or does the group or user need to be somehow configured?