Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Change: Restricting Module Visibility based on user's department

andy_dufresne
Tera Expert

Is there anyway I can restrict a specific module to user's department?

When I edit the module, the visibility is based only on roles.

Any other alternatives to achieve this?

Thanks,

find_real_file.png

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

Possible.



Easiest way would be to do this via roles. Add a custom role to the users who needs to have access and use it to control access.


Hardest way would be to write a query business rule on modules table. This isn't so hard either.


View solution in original post

6 REPLIES 6

I guess I will be creating two new roles and adding to existing roles, dont think we can automatically attach to a department.


Hi Andy,



What you are asking here is the department to role relationship as per my understanding.


This is not an OOB feature. Groups are created for such purpose where you can add roles to a group which gets automatically added to the user present in the group.


I guess implementing it will be expensive enough so it's better to go with roles directly.


find_real_file.png