Audit Workspace: How to set audience by user group to page variant?

Miikka_M
Tera Guru

Hi, 

I'm doing variants of Audit Workspace Homepage for different user groups. In variant settings I can define audience for variant, but I can't see my user groups here. Why I'm only seeing 78 groups what I can define for variant? I have 1131 user groups in sys_user_group.list
2023-12-13 15_50_33-UI Builder _ ServiceNow.png
How to add "custom" user group for page variant audience? Or should I limit access to variants via ACL:s? What would be best way to do this?


Thanks in advance. 

This documentation did not help: https://docs.servicenow.com/bundle/vancouver-application-development/page/administer/ui-builder/task...

1 ACCEPTED SOLUTION

Miikka_M
Tera Guru

Here step by step how to create new Audience to workspace.

1. Create new Audience at: sys_ux_applicability.list by clicking new
2. In this new record, on the bottom create new user criteria inclusion, by clicking new
3. Open record, open "can read"
4. Create new user criteria record by clicking new -> user_criteria.do
5. Now you can add specific group to user criteria which is under user criteria inclusion, which is under new audience you created

2023-12-14 11_23_24-Settings.png


6. Now you can add this custom audience, which has specific group in ui builder.

Screenshot 2025-02-13 110044.png

That's the easiest way to show page variants for specific audience.

View solution in original post

9 REPLIES 9

Maik Skoddow
Tera Patron
Tera Patron

Hi @Miikka_M 

before using an audience you have to add one by clicking on the respective "+" sign: 

MaikSkoddow_0-1702477361444.png

Maik

 

I still can only see only some of groups, but not every group instance have. I'd like to show this workspace only for users who work in specific country and are in that specific created group. But for example this and many other user groups are not available.

Am I missing something?

2023-12-14 10_50_35-UI Builder _ ServiceNow.png

 

Community Alums
Not applicable

Hi @Miikka_M ,

Audiences are generally made of allow/deny lists based on role and domain. They can also target the following:
  • Role
  • Group
  • User
  • Company
  • Department
  • Location
  • Script

You can set audiences to fit a specific role based on one or more criteria. For example, you could create an audience for an ITSM user in Europe who is not a manager.

The glide.ux.user_criteria_enabled property needs to be set to true to configure access for users based on role, department, group, location, or company. See Enable the user criteria property, for more information.

 

Hi Sandeep, and thanks for your answer. Seems like I'm getting there, but still I can't see all user groups I have. 

I activated that property, thanks for that tip!

2023-12-14 10_41_54-Settings.png


In UI Builder I click "edit all audience"

2023-12-14 10_44_53-UI Builder _ ServiceNow.png


I still can only see only some of groups, but not every group I have. I'd like to show this workspace only for users who work in specific country and are in that specific created group.

Am I missing something?

2023-12-14 10_50_35-UI Builder _ ServiceNow.png