'Access to query's permalinks for users with other roles/spaces

Our Kibana (7.17.1) users would like to share queries (via DiscoverSharePermalinks) with other users that have different roles/spaces assigned. At the moment the target users get just a blank page if they use the permalink URL.

I activated anonymous authentication to enable Public URLs as a try, but the underlying anonymous user in turn needs role(s)/space(s) assigned and I can't add everything there since this would be against our data security policy.

I also tried the built-in role viewer for the anonymous user but this didn't work without an explicit role in addition and "This functionality is in technical preview and may be changed or removed in a future release." and "read access to any index that is not prefixed with a dot" is also against our security policy anyway.

Is it possible somehow else to give users with different roles/spaces access to shared permalinks?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source