Access to more than one model with Embed SSO Login

  • 14 February 2018
  • 1 reply

I’m trying to improve our access to Looker via the Embed SSO Login, so that it can support access to multiple models, from the same embed user. Our code so far is based on the example SSO Login PHP script in the Looker Codebase;

The example passes a bunch of attributes to the API to determine how the embed user will be set-up, including;

  • nonce

  • time

  • session_length

  • external_user_id

  • permissions

  • models

  • group_ids

  • etc…

Presently, our SSO Login only permits access to a single model. This is causing us problems for dashboard scheduling, when after switching models, the embed model permissions are overwritten, causing errors when sending out scheduled dashboards for the previous model.

If I need the login to have access to multiple client models how should I be configuring this? Is it enough to specify multiple model names in the ‘models’ attribute?

Many thanks!

1 reply

Hi Rob,

This should be an easy fix, you can add as many model names as is required in the $json_models = json_encode( array ( “<your_model_name>” ) ); parameter.

You can test this out using this tool, which I used to generate the following URI:



Notice the model section of the URI has many models listed.

Have a look at the tool and let me know if you have any feedback.