- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2019 10:18 AM
Hi Team,
Please help me to remove the User preference section from the service portal. Rest all i need to keep as it is.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2019 10:41 AM
HI,
You will have to clone user profile widget and then edit the code. You have to set data.preferencesEnabled.preferencesPanelEnabled to false always.
Above is the HTML. To set that variable false go to Server Script and set it to false.
See above code lines to set preferencesPanelEnabled as false.
Change below line of code
preferencesPanelEnabled : GlideStringUtil.nil($sp.getParameter('sys_id')) || $sp.getParameter('sys_id') == gs.getUserID(),
to
preferencesPanelEnabled : false,
Thanks,
Ashutosh Munot

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2019 10:41 AM
HI,
You will have to clone user profile widget and then edit the code. You have to set data.preferencesEnabled.preferencesPanelEnabled to false always.
Above is the HTML. To set that variable false go to Server Script and set it to false.
See above code lines to set preferencesPanelEnabled as false.
Change below line of code
preferencesPanelEnabled : GlideStringUtil.nil($sp.getParameter('sys_id')) || $sp.getParameter('sys_id') == gs.getUserID(),
to
preferencesPanelEnabled : false,
Thanks,
Ashutosh Munot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2021 09:19 AM
Hi Ashutosh,
I have a similar kind of requirement. It would be great if you can help me on this.
Eg: There are users with company A & B. If the user from A logins it should display the manager as 'My manager' in the User profile and if User from company B logins, it should display as 'My approving manager'.
I have cloned the existing widget and made a few changes. I need clarification on below items.
1. If I chose any one widget to the user profile, how will the another widget gets displayed?
2. I updated a server script in the script editor. How should I pass this to the client side.
I have attached a screenshot, Kindly ignore if my code is wrong as Iam new to scripting service portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2019 08:40 AM
Thank you so much it works