Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Infor / Lawson Platforms
S3 Security
Duplicating Data Level Security in LS for Co / AcctUnit
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Wojo
Past 24 Hours:
1
Prev. 24 Hours:
0
Overall:
5265
People Online:
Visitors:
359
Members:
0
Total:
359
Online Now:
New Topics
Lawson S3 Procurement
Tolerance Settings
3/31/2025 2:01 PM
I've been trying to set a tolerance for some t
Dealing with Lawson / Infor
Printing Solutions other than MHC
3/27/2025 1:00 PM
What are others using for printing solutions besid
Lawson S3 Procurement
Green check marks in Lawson 9.0.1
3/20/2025 4:55 PM
Hi, How to remove green check mark on items when o
Lawson S3 HR/Payroll/Benefits
Pay Rate History to Show All Positions
2/26/2025 3:34 PM
Does anyone know how to modify payratehistory.htm
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1375
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Infor / Lawson Platforms
S3 Security
Duplicating Data Level Security in LS for Co / AcctUnit
Please
login
to post a reply.
2 Replies
0
Subscribed to this topic
16 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Jake Miller
Basic Member
Posts: 5
2/4/2011 3:04 PM
In LAUA we use the Data Level Security (Company and Process Level) to specify Company ranges and Accounting Unit ranges for Financials security. It works great. Now, I need to duplicate this setup in LS.
According to Lawson, the only way to secure FB40.1 (Budget Journal Entry) to a specific Company and AcctUnit is to apply conditional statements to the form detail line fields. Element Groups only validate the first line and invalidate Next or Previous actions if the first line fails. Elements can't be used to specify a specific pair of Co / AcctUnit. And, ToCompany and AcctUnit are not available fields to use on the FB40.1 or DTO sections... only on the line itself.
Ideally, we would use a multi-valued attribute on the RM to store the (Company / AcctUnit pairs to which a user has "All Access" security. And, the Company / Acct Unit values would in fact be ranges (Co 100 -> 200 / AcctUnit 1000 -> 1200). The attribute needs to be multi-valued because there can be several range pairs to which a user has all access. Example:
100-200|1000-1200
300-300|1000-1000
400-500|1200-1200... etc. just like LAUA.
Once the attribute is created and populated for a user, how does one sift through it (via LS) and make comparisons to two separate and independent fields? For instance, if form Co = 150 and AcctUnit = 1100 (should be all access), how do I iterate through the multi-valued list and check to see if the company is between the first two numbers and the AcctUnit is between the second two numbers? Or, is there an easier way to do this that I am overlooking? Any help would be greatly appreciated!
Thanks in advance,
Jake
Greg Moeller
Veteran Member
Posts: 1498
2/4/2011 4:04 PM
Split
We are using something like the following to restrict which companies a user can see.
The CompanyControl attribute comes with all new installs of LSA... A lot of rule-writing is involved here, so we haven't actually implemented anything in production yet.
user.attributeContains('CompanyControl',COMPANY)
I believe AccountingUnitControl and ProcessLevelControl attributes exits now, too. Or you could add your own custom attribute via the Schema Editor.
Jake Miller
Basic Member
Posts: 5
2/4/2011 5:41 PM
Split
Thank you, but I've looked at that and it doesn't give me what I need. I need to lock down the Co / AcctUnit pairs. If I granted access to Co 100 | A/U 1000 and Co 200 | A/U 2000 (two specific pairs) via the companycontrol and accountingunitcontrol attributes the user would get Co 100 & 200 and A/U 1000 & 2000 (four specific pairs).
A custom attriibute could, and does work to identify specific pairs that a user has access to via
user.attributeContains('customattribute',concat(trim(form.FLT_TO_COMPANY),trim(form.FLT_ACCT_UNIT)))
where customattribute is a concatination of accessible Co & A/U... i.e. 1001000 (C0 100 & A/U 1000)
However with 352 specific pair possibilites (and some users with unlimited access or very high access) I need to do this by ranges. Such as where customattribute is a concatenation of the LAUA Data Security lines...
Line 1 = 100-100|1000-1000 (one pair)
Line 2 = 200-200|2000-2000 (one pair)
This would still leave the possibility of 100-999|1000-9999 (unlimited access)
Think of it this way...
if (form.FLT_TO_COMPANY between 1st Co in customattribute and 2nd Co in customattribute
&& form.ACCT_UNIT between 1st A/U in customattribute and 2nd A/U in customattribute) then ...
else... check next entry in multi-valued customattribute.
How can I accomplish that?
Please
login
to post a reply.