How to :: validate your user’s rights with View As¶
In this case, you’ve chosen to keep data in your own information system
and connect to Toucan through Live
You are responsible of the user rights over your data and you’re using
attributes in order to authenticate your users on your API
or your analytics database.
Now that you’ve created a few stories, you want to see how they render according to several different user attributes. For that, we offer a tool in our Studio called the View as.
Let’s say we’ve got a story that displays performance for several stores in different cities. We’re happy with this visualization but we want it to be filtered by city according to the current authenticated user.
In my user’s attributes, we’ve got a
store attributes that tells us
which store data the user can see.
Let’s then insert our
__VOID__ variable allows us to ignore that filter if
attribute is missing!
We will create a “Custom User”.
We can write our custom user’s attributes
store in the popup.
Applying this value, we can preview the story as if we were
store equal to