- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2019 04:14 AM
I have a table titled as "service request', Now irreescpective of all the users have persmission to create new records.
Query: i have group titled as 'Requested members' in that 5 group members are available, for that 5 members only have permissons to create records on that table.
How can we acheive this
?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2019 02:03 AM
Hi Nag,
Create an ACL for create and Write and put this code there, that shoudl work.
In the script, put the code like below
if(gs.getUser().isMemberOf("your group NAME")){
answer = true;
gs.log(gs.getUser().isMemberOf("your group NAME"),"acl working now");
}else
{
answer = false;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2019 04:19 AM
Hi Nag,
I believe this you want
1) only those 5 users belonging to that group should be able to create new record into that table
best way is to have a custom role created and assign to this group so the 5 members automatically receive that role
update table.None create ACL and give this role
so what happens when ACL is evaluated it checks whether logged in user has that role if yes then show new button
one good thing in future would be if you want to add 1 more member and give access to create; directly add that to this group and that user will automatically inherit the group role so no need to change ACL
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2019 04:54 AM
Hi Nag,
First, you need to add these users to 1 role so that tomorrow if you want to give access to 6th user, you can simply assign this role to that user.
Once the role is created, then create an ACL with None and give access to the new role created. Then this will restrict the creation of records only to the users having this role.
Mark the comment as a correct answer and also helpful once worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2019 01:52 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2019 02:03 AM
Hi Nag,
Create an ACL for create and Write and put this code there, that shoudl work.
In the script, put the code like below
if(gs.getUser().isMemberOf("your group NAME")){
answer = true;
gs.log(gs.getUser().isMemberOf("your group NAME"),"acl working now");
}else
{
answer = false;
}