Forum Discussion

YukiK's avatar
YukiK
Icon for Impactful Individual rankImpactful Individual
5 years ago

How to detect object / row level security and show a different visual

For the visual where object / row level security is in effect, it won't get populated and just show an error on the visual.

 

But is there anyway to show a better message? I'd like to do something like when a person doesn't have access to the data in a visual, instead of showing the visual, show a text box saying something like "You don't have access to see this visual".

 

Thanks in advance.

4 Replies

    • YukiK's avatar
      YukiK
      Icon for Impactful Individual rankImpactful Individual

      How about handling OLS? It's basically where the tables / columns are gone, which I'm not sure how to catch in DAX...

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi YukiK,

        AFAIK, OLS will affect the table structure. So I think you need to do some operations on the query table side use a template to formatting the table structure.
        For example:

        Initiation table with a static structure with all fields similar to your database. Fill up the filtered field with blank values, you can write RLS expressions to check multiple fields to trace if some fields not existed value(it means these fields have been filtered by OLS). Then you can use if statement with particular processing with these situations.
        Regards,

        Xiaoxin Sheng