Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Performance Management
Lawson Business Intelligence/Reporting/Crystal
Verifying LBI Maintain Rights
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
LindseyC
Past 24 Hours:
0
Prev. 24 Hours:
3
Overall:
5183
People Online:
Visitors:
235
Members:
0
Total:
235
Online Now:
New Topics
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1348
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Lawson Business Intelligence/Reporting/Crystal
Verifying LBI Maintain Rights
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
ALB
Veteran Member
Posts: 130
3/20/2017 4:46 PM
We are moving from on-premise to the Cloud without realizing that we were expected to maintain LBI security from that initial cut. We have some reports which are bursted. It appears that some people were partially set up. Does anyone have any SQL they use to confirm LBI Rights match?
Dave Curtis
Veteran Member
Posts: 136
3/20/2017 7:55 PM
I suppose it would depend on what elements you have your rights built with but here is the start of what I think you are looking for.
I use this to compare the LBI rights to structure that the rights are built on (such as supervisor codes, department etc).
Might get you started at least...
SELECT rm.ruleid,
rm.rulename,
rm.ruledescription,
rm.ruleowner,
rm.startdate,
rm.enddate,
rm.status,
rv.rulegrouping,
rv.structureid,
st.structurename,
rd.elementorder,
rv.elementid,
el.elementname,
rd.operand,
rv.elementvalue1,
rd.elementvalue2
FROM rsuser.ers_rulemaster rm,
rsuser.ers_rulevalues rv,
rsuser.ers_elements el,
rsuser.ers_structure st,
rsuser.ers_ruledetail rd
WHERE rm.ruleid = rv.ruleid
AND rv.elementid = el.elementid
AND rv.structureid = st.structureid
AND ( rv.ruleid = rd.ruleid(+)
AND rv.elementid = rd.elementid(+)
AND rv.structureid = rd.structureid(+)
AND rv.rulegrouping = rd.rulegrouping(+))
ORDER BY rm.rulename,
st.structureid,
rv.rulegrouping,
rd.elementorder,
rv.elementid
Joan Herzfeldt
Veteran Member
Posts: 74
3/21/2017 12:38 PM
Hi Angela - This is similar to Dave's but I found and linked the role and username as well.
select distinct
M.RULEID
, U.CONSUMERID AS USERORROLE
, ghs.GET_USERGROUP_NAME(u.CONSUMERID) as USERNAME
, M.RULENAME
, M.RULEOWNER
, M.STARTDATE --datetime field for CR
, M.ENDDATE --datetime field for CR
, D.STRUCTUREID, S.STRUCTURENAME
, D.ELEMENTID, E.ELEMENTNAME
, D.ELEMENTORDER
, V.SEQUENCEID
, D.OPERAND
, V.ELEMENTVALUE1
, D.ELEMENTVALUE2
, V.RULEGROUPING
FROM ERS_RULEMASTER M
JOIN ERS_RULEMAPPINGS U ON M.RULEID = U.RULEID
JOIN ERS_RULEDETAIL D ON M.RULEID = D.RULEID
JOIN ERS_RULEVALUES V ON D.RULEID = V.RULEID and D.STRUCTUREID = V.STRUCTUREID and D.ELEMENTID = V.ELEMENTID
JOIN ERS_STRUCTURE S ON D.STRUCTUREID = S.STRUCTUREID AND S.STATUS = 'A'
JOIN ERS_ELEMENTS E ON D.ELEMENTID = E.ELEMENTID
where M.STATUS = 'A'
You are not authorized to post a reply.