Hide gear icon in embed iframe

  • 5 December 2018
  • 6 replies

In a embed looker iframe, Is there a way to hide the gear icon on the upper right corner?


6 replies

The download and schedule permissions (and all the other permissions) are passed to the users in the SSO Embed URL as parameters. If you omit the permissions relating to downloading and scheduling (you can see which ones these are by looking at the definitions of the permissions here), the cog should not be visible in the iframe.

Userlevel 7
Badge +1

I can think of two ways to get that gear out of the picture-- One is to just remove all the permissions that relate to it. If you don’t grant users download or schedule permissions, I don’t believe that gear will appear anymore.

Another option, if you wanted to maintain those permissions, would be to place another <div> with the same background color as the dashboard on the page containing the iframe, and use that to cover up the gear- Hacky, but it’d work to get rid of it!

Userlevel 7
Badge +1

Yup, @gavin.wims hit the nail on the head!


Thanks! The second option works, but like you said it is hacky.

Regarding the first option, where can I “don’t grant users download or schedule permissions”. Can I do it in the iframe url query param? I am using SSO embedding.

@gavin.wims, @izzy Awesome. Thanks guys!

is there a way to make the title bar disappear?