Show the data based on user login using field level security

To show or obfuscate data based on the user login in Bold Reports®, pass the user ID to a hidden parameter and use an expression on the column that checks the user role. Follow these steps.

  1. Create a dataset by getting the user id from the database.

User id filtering

  1. Pass the default value for the user id parameter by referring to the following image and set the parameter visibility as hidden.

User id parameter

  1. Based on the user role, obfuscate the data by using an expression for the column.

User id expression

  1. Preview the report with admin and guest user login to see the difference like the following images:

Preview of Admin user: User id admin Preview of Guest user: User id guest

See also