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
Secure jobs/prints by Group attribute for users with Multiple Groups
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
LynneB
Past 24 Hours:
2
Prev. 24 Hours:
1
Overall:
5123
People Online:
Visitors:
195
Members:
0
Total:
195
Online Now:
New Topics
Lawson S3 Financials
PO Matched Dollars and Matched Quantity
5/10/2024 6:51 PM
Can anyone share the Lawson calculation to determi
S3 Customization/Development
COBOL CSV file
5/10/2024 2:36 PM
We have a custom Cobol program ZU200 that creates
S3 Systems Administration
Using MFA for Lawson S3 Access
5/8/2024 1:23 PM
Does anyone use Multi Factor Authentication when u
Lawson Landmark
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
IPA/ProcessFlow
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
S3 Customization/Development
Cobol - Extract Current Time
4/24/2024 7:21 PM
How do you extract just the Current System Time in
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
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
1357
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
S3 Security
Secure jobs/prints by Group attribute for users with Multiple Groups
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
mikefortuna
Basic Member
Posts: 14
8/21/2013 2:16 PM
I can use this function to find a user's group attribute and then limit them to seeing jobs/prints of users within their own group. This works, but not if the user has multiple groups assigned to them.
UserName==user.getHostServiceId()||isMemberOf(user.getAttribute('Group'),UserName)
'All_ACCESS,'
else
'NO_ACCESS"
How can I do this so that it checks all of the groups assigned to the group attribute?
Georgette
Veteran Member
Posts: 52
8/21/2013 7:09 PM
I remember from class that the getAttribute function only returns one value. For multiple values the attributeContains function is required.
I find it interesting that you have combined the isMemberOf() and getAttribute functions.
mikefortuna
Basic Member
Posts: 14
8/21/2013 7:39 PM
The idea was to make one expression that would cover all groups.
If a user was in the AP group, then the expression would look at their group attribute and allow access to the username element for all users who are also in the AP group.
This could be done by using isMemberOf('AP',UserName)
The user.getAttribute('Group') in place of 'AP' would make this dynamic rather than having 'AP' hard coded into the expression. And this works if you only have one group assigned to the user.
From the Help documentation:
attributeContains(String IAttrName, String IAttrValue)
Checks whether, for the current user, the specified attribute contains the specified value.
attributeContains('Group', 'AP') would return True for my user. But unless I'm missing something from this, I'd need to be able to pull multiple values from the Group attribute.
Karen Beyer Goode
Basic Member
Posts: 4
8/21/2013 7:53 PM
This works for me
if(UserName==user.getUserName()||isMemberOf('NameOfTheGroup',UserName))
'I,'
else
'NO_ACCESS,'
Roger French
Veteran Member
Posts: 545
8/22/2013 1:35 PM
What version of environment are you on that that rule works OK?
I know that with env 9.0.1.11 on Windows (without patches) that rule does NOT work.
You are not authorized to post a reply.