- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 08:12 AM
Hi,
I am trying to create a module for specific user that list all hr cases and hr tasks for their location. I have created a group and a role for these users and and assigned hr case reader and hr task reader roles. The individuals in this group are at different locations/companies and I want them to only be able to view for their location. I have tried a couple of arguments I found online but they have not been successful.
Does anyone have any suggestions to get this to work?
Link type: List of records
Table: Task
Filter: Active is true or false
Task type is HR Case or HR Task
Arguments: company = javascript:gs.getUser().getRecord().getValue('company')
Thanks,
Lorenzo
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2017 01:19 PM
hi lorenzo
i would propose to do this with ACLs. The thing with configuring a list view is, that the records would still be all available for all users (via search or via modifying the filter). If you configure an ACL for this, the records are strictly restricted to the relevant role.
Read here how to set up such ACL rules: Create an ACL rule
Be careful, modifying ACLs require some experience.
Best Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 08:32 AM
Hi Lorenzo,
You can just provide role for visibility.
Mark Helpful if it helps.
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.
********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect
Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 08:43 AM
Hey Prashant,
I don't quite understand what you mean by "just provide role for visibility".
Lorenzo Watts
System Administrator I
University System of Georgia Shared Services Center
1005 George J. Lyons Pkwy
Sandersville, GA 31082
www.ssc.usg.edu<http://www.ssc.usg.edu/>
Ph. (478) 240-6500 / Fax (478) 240-6414
lwatts@ssc.usg.edu<mailto:lwatts@ssc.usg.edu>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 11:48 AM
Any other thoughts on how to accomplish this.
Thanks
Lorenzo Watts
System Administrator I
University System of Georgia Shared Services Center
1005 George J. Lyons Pkwy
Sandersville, GA 31082
www.ssc.usg.edu<http://www.ssc.usg.edu/>
Ph. (478) 240-6500 / Fax (478) 240-6414
lwatts@ssc.usg.edu<mailto:lwatts@ssc.usg.edu>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2017 01:19 PM
hi lorenzo
i would propose to do this with ACLs. The thing with configuring a list view is, that the records would still be all available for all users (via search or via modifying the filter). If you configure an ACL for this, the records are strictly restricted to the relevant role.
Read here how to set up such ACL rules: Create an ACL rule
Be careful, modifying ACLs require some experience.
Best Regards