Row level security - Automated for Salespeople

Advanced tips ››
Parent Previous Next

Calculated fields that are conditional on the user's login can be used to filter which data rows that user can see. The user can edit and create reports based on this data source, but should not have data source editing rights.

(The typical use case is that all the salespeople share the same reports, but each salesperson sees only his own customers' records.)


Tableau knowledge base article on row level security and user filters


The following tips may also help you to get started.


A simplified version of how to implement row level security

  1. Identify or create a field(s) in the data source that can be used to identify which records a user is to see.
  2. In DataSelf Desktop, create a calculated field that compares the identifying field in step 1 with user login information and returns True or False.
  3. Apply the filter to the data source before you publish it.


Tips


A very simple example:



Tuck the filtering field out of the way by moving it into the System Info hierarchy.


Apply the filter:



Test the filter:

In Desktop, log onto the server (Server menu > Sign in).

A list of Users and Groups on the server will appear in the lower frame.

Select a user or group and see how your report changes.




Previous      Next