How to give permissions for a particular group menbers on a table to create new records

Nag9
Tera Expert

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

?

 

 

1 ACCEPTED SOLUTION

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;
	}

 

View solution in original post

11 REPLIES 11

Here is the screennshot if acl

okay

Also, do create a write aCL as well in similar way. but have table and * combination.

 

You need to check as an user from the given group and then check logs. you will know whether that acl is executing or not.

Hi Nag,

As suggested in my previous comment have a group create and assign those 5 users to that group;

the reason omit new condition role won't work is admin gets all role by default so use below approach

have a table.none create ACL and since you also want admin not to have new button then do this

Admin overrides checkbox should be unchecked

screenshot below; select your table there

find_real_file.png

Now when one of that 5 user logs in; the ismember of condition will be true and new button will be shown

when admin logs in the else if will be true and false would be returned and new button will be hidden

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Tried with ur code ankur, but its nit working