Widget visibility for Non ITIL users

Akhila P
Tera Contributor

Hi, I have a requirement where the widget in the service portal should be visible to everyone(Non-ITIL and ITIL users). Has anyone done this before? 

 

Regards,

Akhila.

5 REPLIES 5

Mark Manders
Mega Patron

You can add roles to the widget or even make it public. The field is on the widget form (sp_widget). 

Since you aren't saying what you want to show on the widget, I assume it's general available information. Otherwise you need to add access rights to the data too.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hi Mark

The widget is called Major incidents, and users can see the widget, but cant see the list of incidents inside it.

Juhi Poddar
Kilo Patron

Hello @Akhila P 

You can show the widget to user based on role.

Server side script:

data.isAdmin = gs.hasRole('admin');

 HTML:

<div ng-if="data.isAdmin">
//remaining html code here
</div>

Note: The above example demonstrate for admin role, however you can modify script for any role.

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar

Hello Juhi

The widget is called Mjor incidents and users can see the widget, but cant see the list of incidents inside it.