- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 06:12 AM
Hi,
I have a requirement to show New button only to specific groups in the catalog task.
How to achieve that?
Thanks,
Samiksha
Solved! Go to Solution.
- Labels:
-
Request Management
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2023 06:19 AM - edited 08-21-2023 11:46 PM
Hi @Samiksha2,
This article isn't going to help you. The edit button is completely different.
The New button is a global button, for multiple tables. You will have to create a 'create' ACL on the sc_task table in order to control the visibility of the button and leave the button itself OOTB.
Is there only 1 group which should be able to create sc_tasks, or is it dynamic?
If it's 1 group, you could just use in the ACL Script:
if((gs.getUser().isMemberOf('<<group sys_id>>'))) {
answer = true;
}
else{
answer = false;
}
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 11:36 PM
Hello @Samiksha2
If it is working, As per new community rules you can mark multiple solution as Accept.
Pls mark my solution as Accept.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2023 03:21 AM
Hi @Samaksh Wani ,
I added the script but now new button is not visible to anyone.
What I am doing wrong here?
Thanks,
Samiksha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2023 03:27 AM
Hello @Samiksha2
Label Field should not be empty.
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2023 04:06 AM
No Luck @Samaksh Wani . I tried but it is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2023 05:00 AM
Hello @Samiksha2
As you Mentioned in Question, You want button to show to specific grp, then
in If Statement, there should be answer = true;
and in else, answer = false;
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2023 05:44 AM
The OOTB new button is only displayed if a user has create access to a table.
So the right way to do this is limit create access by using ACL's on the sc_task table.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.