Force user to a specific view (i.e. ess user to an ess view)

thisismichaelb
Tera Contributor

How do I force an ess user to an ess view?   There must be something around roles I am missing.

 

View Rules don't seem to have the flexibility I need.   And I am able to do this with links, but what about an email link that goes out or gets passed around?   I've noticed users that hit those links go to the default/everything view and not an ess view.

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Michael,



Check out https://wiki.servicenow.com/index.php?title=Restrict_Form_Views_by_Role



You'll need to build a global business rule (one of the few times you can't use a script include.) Check the one for incident list & form as an example.


View solution in original post

7 REPLIES 7

Your sysparm_view is using "Approver", but your script is checking for and setting "approver". The two do not match. The view name is case sensitive. Adjust one or the other according to what the view name actually is.


Thank you Chuck for reply.



Yes i have the view name as "approver", and title as "approver" in RITM form.


made the changes to have "approver" in the above business rule and UI action.


But no luck still. even tried clearing the cache using the cache.do.



Am i missing something.


I don't see anything off hand.