on 06-10-2013 10:30 PM
Hi all,
I am looking for a solution, Please advise.
I have a security table and planning to implement row level security. Userid = @variable('BOUSER') . I am successful in this scenario.
----
What if a developer or back office user is not in the security table and he/she should see everything.
got some code from sybase folks
select * from dimproduct p,dimuser ur
where p.userid = ur.userid or ur.userid not in (select ur.userid from dimuser )
how to implement in Universe with BOUser ???
there might be two solutions:
1.
Instead of "Use mandatory in Query you can open Security Editor and create a Data Security Profile. There you can add the filter in the filters tab and apply this Profile to the groups that should only see their own values. Make shure that your developers are not members of that group. By that the defined row level restriction will not be applied to them.
2.
Another solution could be to create a user in the CMC "%". And instead of
Userid = @variable('BOUSER') use
Userid LIKE @variable('BOUSER')
Not that elegant, but worked back in XIR2 times,I don't know if this can be done nowadays and if it is acceptable for you to let your developers share a single account for testing scenarios.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In a scenario, As a BOBJ developer or back office associate we need to fix report issues/ enhancements.
You will not be in the security table because you are not a user.
So how will you fix the issue ??
So I am planning on doing little different
What if a developer or back office user is not in the security table and he/she should see everything.
in scenario 2 @variable['BOUSER') will simply be replaced by %, if someone logs in with userid % and this results in an expression: Userid LIKE % which results in Userid is not restricted at all. If the user is a normal user it will be something like Userid LIKE RUC which is in this case the same as Userid = RUC. It is confusing and under normal circumstances I would prefer to go for scenario 1, but anyhow. I have not even tried if this solution is still working in the current release. Try out and you will know, but why not use scenario 1?
Ajay, thanks but it doesn't help.
I tried many but seems not working.
select * from dimproduct p,dimuser ur
where p.userid = ur.userid or ur.userid not in (select ur.userid from dimuser )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.