Implementing security with the help of session variable
1. Implementing security with the help of session variable:
Scenario:
Here we have taken hr schema and we are restricting user john to see data that is related to department no 60 only.We have a user
Johny which had assigned grp role.
1.open bi administration
2.open rpd in online mode.
3.click on manage ,select variable.
4.
5.click on action,new,session ,variable.
6.give name to the variable.
Click on new initialization block, a new window will popup.
2. 7.
8.give the name of initialization block.
9.now click Edit data source
10.This window will popup.
11.select data source type Database and select use obiee server.
And type your query that is returning department no.
3. 12.click on test .Result will be displayed.
Now close all the windows session variable is created and it is returning 60 which is the value of „IT‟ department.
13.Now click on manage than identity.
14.A new window will pop up.
15.Double click on grp
4. 16.click on permission.Next window will popup
17.click on +
A new window will pop.
Now we have to make query like..
Select first_name from employees where department_id=(value in the session variable)
5. 18.It will look like that
19.select select “HR”..”EMPLOYEE.”FIST_NAME” AND fx will become clickable
Click on it
Now make this query
Now click ok.
Now security is implemented successfully .
20.
here is the difference of dashboard data between user weblogic and johny.
Weblogic dashboard: