Create an ACL to hide all the events from 'CDE' source. only visible to a Group and Admin

Keerthan S
Tera Contributor

By using ACL,

if the Source = CDE.

This should be only visible to users with a particular group(ex: TestGroup2) and admin role.

 

I tried various methods(by adding condition Source is CDE and if condition in script true or false), but couldnot able to hide the Events of the 'CDE' source.

If anyone has idea please share it.

6 REPLIES 6

Animesh Das2
Mega Sage

Hi @Keerthan S ,

Can you please can try create a 'Record' type 'Read' ACL on 'em_event' as below,

1. Put condition as 'source' field is 'CDE'. PFB sample SS.

AnimeshDas2_0-1727980295334.png

 

 

2. Under 'Security attribute condition' section, 'HasAdminRole' is 'true' AND 'Group' is 'TestGroup2'. PFB Sample SS for your reference.

Security attribute condition --> section is introduced in Vancouver and a very useful one.

AnimeshDas2_1-1727980295422.png

 

 

If this address your question, please mark this response correct by clicking on Accept as Solution and/or Kudos.

You may mark this helpful as well if it helps you.

 

Thanks, 

Animesh Das

Keerthan S
Tera Contributor

Hi @Animesh Das2 

Tried this method but still visible for other users

Can you please share the SS of the changes you did? I'd like to see once. Otherwise, you could use script condition as well instead of 'Security attribute condition' section if it is not working for you.

 

1. Put condition as 'source' field is 'CDE'. PFB sample SS.

AnimeshDas2_0-1727980295334.png

 

2. Script would be, 

answer = (gs.hasRole('admin') && gs.getUser.isMemberOf('TestGroup2'));

 

If this address your question, please mark this response correct by clicking on Accept as Solution and/or Kudos.

You may mark this helpful as well if it helps you.

Thanks, 

Animesh Das

Hi @Animesh Das2 
even this didnot work, also there are existing multiple ACLs for Event(em_event) table without any condition, just roles have been defined.

 

but we need to hide the Events for this specific source