Hi All,
I need to hide some related actions from specific groups. Can anyone please help me, how to achieve this?
Discussion posts and replies are publicly visible
In the Record you have option to secure related actions for groups. Go to Views and Actions Security under Security header. Click on Actions header. Click on the pencil icon at top right corner of Action to open the security configuration dialog box. You can add the permitted group for the action here. You can also configure groups from this it should not be visible using expression like not(a!isUserMemberOfGroup(username:loggedInuser(),groups:groupConstant)).
Thanks Harsha Sharma ,
Is it possible that both security rule and security expression can be configured in vies and action security tab?
No, it can be either one of those! With expressions you can pretty much add all the conditions using operators. Why do you want to use both?
I am not sure how to configure user found in fields and when can they see the action present security rule tab to security expression. Please can you suggest.
Here is a sample expression. If you want any field from record to be referenced and added in condition use rv!record in the condition. You can use and() or or() operators to club the who and when part of condition together.
For example below, I am allowing my action be visible to the user who created the record, they are part of a specific group, when record statusId is 2 and record's Due Date is today() - then only action should be visible. [P.S. the dueDate is added for the sample, I don't have such a field in my record so its just for example]
When the combined output of this expression is true then only the action will be visible to allowed users. Let me know if you face any issues while configuring these conditions.
Harsha Sharma , thank you so much for the explanation.
if user p1 is part of group A and Group A is subgroup of Group B. If I hide some action for group A but not for Group B then user p1 will be able to see the action?
Rahul009 said:if user p1 is part of group A and Group A is subgroup of Group B. If I hide some action for group A but not for Group B then user p1 will be able to see the action
You can fashion a "Visibility" Expression Rule that checks the group memberships of the viewing user based on any manner of such permutations.
Generally, you ALLOW an action to show up (as in it's not visible to anyone by default except for the people you allow it for), so in such a case, membership in A would be irrelevant, you would simply allow it to show up for people in group B. This logic might shift slightly if you're also looping in other groups or visibility considerations, but the point is, you have almost unlimited flexibility in this respect when using the "visibility" expression (and please, when it gets anywhere near this complicated, do yourself a favor and wrap it in an Expression Rule right out of the gate).