How to restrict "complete" button on problem table to a particular group only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 06:03 AM
Hi ,
I want to restrict "Complete" button on problem table to a particular group , if somebody who is not part of group click on the button user should get error message .
Below is the OOB code:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 06:31 AM
Hi @Nandini DM ,
You can just hide the button from the users who are not part of the group using the below code.
Put this code in the condition field of the UI Action, if there is already another condition present for that UI Action just put "&&" after that condition and use the below code -
gs.getUser().isMemberOf('YourGroupName');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 06:59 AM
Hi @Anirudh Pathak
my requirement is not to hide button, if user is not part of group error message should pop up.