Restriction of records based on choice selected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 01:04 AM
Hi all
I have requirment to restrict records which have impact as high for some of the groups the sysids of that groups are defined in properties so please suggest how to create acl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 01:37 AM
Hi @Ramu8
Please select * and also please see if any other * level ACL is there or not which may give access to the record
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 02:29 AM
I am able to show records without impact==high but the count is showing same and the record which is impact==high able to seee information icon on the list view but when I open it no fields are visible @piyushsain please advice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 04:33 AM
if you also want to hide the information icon and hide the information icon then use table.none
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 11:31 PM
please mark my answer as accepted solution and give a thumb up if your issue is solved
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 01:42 AM
Hello @Ramu8 ,
as @piyushsain said you should create an ACL on record level, the ACL should be triggered for records where the impact == high, then I am not sure if you need to check for an assignment group, or if the user is a member of one of those groups, if you need to check for membership you need to check with something like this :
// Specify the group name you want to check
var groupName = 'your_group_name';
// Get the current user
var currentUser = gs.getUser();
// Check if the current user is a member of the specified group
if (currentUser.isMemberOf(groupName)) {
// User is a member of the group
gs.info('Current user is a member of ' + groupName);
} else {
// User is not a member of the group
gs.info('Current user is not a member of ' + groupName);
}
This is if you have the names in the system property, it you have the sys_ids you need to make a glide record to Group table first to get the records of the groups and test with trei names after that.
Hope that this helps you!
If the provided information answers your question, please consider marking it as Helpful and Accepting the Solution so other community users can find it faster.
All the Best,
Stefan