Restriction of records based on choice selected

Ramu8
Tera Expert

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

9 REPLIES 9

Hi @Ramu8 

Please select * and also please see if any other * level ACL is there or not which may give access to the record 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain

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 

if you also want to hide the information icon and hide the information icon then use table.none

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain

please mark my answer as accepted solution and give a thumb up if your issue is solved

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain

Stefan Georgiev
Tera Guru

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