Turn On/Off Next Experience UI Toggle button - glide.ui.polaris.on_off_user_pref_enabled property

Aarvii is here
Tera Contributor

I want to make this property "glide.ui.polaris.on_off_user_pref_enabled" - which creates Turn On/Off Next Experience UI Toggle button in Preferences >> Display.
And I want this should visible/accessible only for users with Admin Role. Except Admins no one should be able to see this toggle button in their instance I've tried in many ways but couldn't achieve this.
Can anyone guide me how can I achieve this kindly suggest .


Thank you.

 

 

 

Aarviiishere_0-1689324882964.png




Aarviiishere_0-1689325529912.png

 

Aarviiishere_1-1689325600060.png

 

6 REPLIES 6

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

What you are describing that you are after, is not possible.

 

It does sound like you want to be able that admins can flip using new UI or not. If so, you could go for a workaround, having the specific User Preference as a favorite for the admins for example, so they can quickly access it and update it. Just a thought. That way the toggle switch can be off, though admins can still quickly toggle their own preference.

 

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi Thanks for quick response.
I tried with user preferences using the property glide.ui.polaris.use but I couldn't be able to achieve this

Can you share in detail what you tried than? Here it works fine.

 

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Ahmmed Ali
Mega Sage
Mega Sage

Hello @Aarvii is here 

 

It is not possible to show the option only for admins. Usually, I would not worry about having these options for admin as generally admin users can create the user preference manually in user preference table.

 

If you still want to have option for admins to switch UI, then simple workaround would be to create two modules (application navigator) in self-service or any other application and have it's visibility restricted only to admins.

 

1. Name: Switch to UI16

Type: URL

URL: /nav_to.do?sysparm_userpref_glide.ui.polaris.use=false

 

2. Name: Switch to Polaris UI

Type: URL

URL: /nav_to.do?sysparm_userpref_glide.ui.polaris.use=true

 

Thanks,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali