How can I set a view based on a users group?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2015 07:02 AM
Hi All,
as mentioned in the short description. I want to set a specific view for user which are in a specific group.
I thougt about a client script but I dont know how to set a view using a client script.
Does anyone know how I can solve my problem?
cheers Bernd

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2015 07:19 AM
Hi Bernd,
You may find the below link helpful.
Restrict Form Views by Role - ServiceNow Wiki
View Management - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2015 11:38 PM
Hello Pradeep,
Thank you for your reply, but your solution does not have the dynamic that I need..
What I have in mind is:
The current user is Member of the Group "IS Service Desk". A script (or whatever) recognise it and change the view while the form loads.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2015 01:17 AM
hi Bernd,
Couple of ways by which you can achieve this:
1)
Check out View rules on wiki, you can create 2 view rules
One will direct users of group service desk to view x
other will send users of all groups except service desk to view y.
Important thing is to make sure that under no circumstances condition of both view rule should be matched, in that case output will be random.
2)
From an onload client script
» How to change a form view with a Client Script or UI Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2018 06:41 AM
How can I set a view for a specific group using View rules please ?
I tried using roles and i got it, but I want to know with groups.