Restric the 'Vendor Module' to particular group member

keerthana10
Tera Contributor

Hi Experts,

Group named "Vendor Module Users" and add members to it. . Users who are part of this group can only view and edit forms in the Vendor Module. Other users can only read and not Edit

 

This is my requirement , So i have done Create group and add users in that group. next i try to create ACL , but here i am stuck . 

 

So please help me on this.

 

Thanks. 

21 REPLIES 21

Community Alums
Not applicable

Hi @keerthana10 ,

scripting can not control visibility !! Because of the following reasons :

  • Security hardening reasons: Any kind of script (client or server-side) won't execute on application menus and modules.
  • Restricting via ACLs and/or Business Rules won't work because, the modules do not query the target tables (and hence, don't get triggered).
  • Filter navigator searches are done on the client-side and plus the quick search results you get are because of the browser cache.
  • Using a script will put a load on the system where caching is not involved and could cause performance issues.

So, you need to use role to control the visibility !! Like below :

SandeepDutta_0-1743600692267.png

 

So, what you can so is :
1) Create a role .
2) Edit the module and go to the Visibility tab.
3) Assign the role and Save the changes.
4) Assign the role created in Step 1 to "Vendor Module Users".

Now you're all set. Assign users to the Group and they'll be able to see the module.

 

HI @Community Alums  i am not restict visibility , i want 'Vendor Module Users"  this group member can edit , others can view only not edit. , That vendor module table name is - "core_company".

 

Ankur Bawiskar
Tera Patron
Tera Patron

@keerthana10 

So only those group members can read but cannot edit. So who is allowed to edit?

1) Then you can have 1 table.None READ ACL, use advanced script

answer = gs.getUser().isMemberOf('Vendor Module Users');

2) Another table.None WRITE ACL and use this in advanced script

answer = !gs.getUser().isMemberOf('Vendor Module Users');

3) Another table.None WRITE ACL to allow other users to edit based on your requirement, ensure both the table.None WRITE ACLs are mutually exclusive

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi @Ankur Bawiskar  

 

Sorry ,(Vendor group users)  this group members   allowed to edit , others can read but cannot edit.