How to makeuse of passed parameters in Dashboard

My application make use of role-based dashboard creation. if employee is of type depthead or divisionhead the dashboard should show only department wise or division wise data. if otherwise, data shown would of the projects for which the employee is assigned to. How can i create custom dashboard in this case?

What you’re looking for is our data sandboxing feature, take a look at that in our documentation