Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
3 years ago
Solved

Mostar or hide Object (Power Automate button) according to connected user.

Hello colleagues, I need to show or hide a visual, depending on the user who connects. In this case, as there would only be two users to whom the visual has to appear, I did not want to use RLS becau...
  • v-jianboli-msft's avatar
    3 years ago

    Hi Syndicate_Admin ,

     

    Please try:

    1. Create a card visual and adjust its size to cover the object (Power Automate button):

    2. Apply the measure to the card visual and turn off Category Label:

    Measure = ""

    3. Create a transparent measure and apply this to the card visual:

    Transparent = 
    IF ( USERNAME()="abcd@outlook", "#FFFFFF00", "White" )

    Final output:

    Note: This method is not completely secure, so if the content you need to hide contains sensitive data, consider using RLS.

     

    Best Regards,

    Jianbo Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.