Disable "View Identity Center" from user profile page in service portal

Ruaa1
Tera Guru

Hello,

 

After upgrading to Utah, we see a link "View Identity Center" in user profile page on Service Portal. We would like to hide/disable it.

 

I looked at the user-preferences widget and see the code in attached screenshots. I don't know where to add that property to make it return false, is it in the sys_properties, or the user preferences? I just don't want to edit the widget itself and prefer to modify the properties instead.

 

Ruaa1_0-1698951925625.png

 

Ruaa1_1-1698951942217.png

 

 

Thank you,

Ruaa Matti

1 ACCEPTED SOLUTION

Hello Chang,

 

ServiceNow proposed two options as a solution. There is No system property to disable the 'Identity Center' link only on the portal.

 

Solution proposed by ServiceNow:
1. Deactivating the plugin option exists to disable it completely in the instance. OR
2. Commenting the HTML tag in the widget

Hope this helps.

 

Best regards,

Ruaa

View solution in original post

13 REPLIES 13

Hello @Byron Plant ,

 

I did not comment out the lines in server script.

I commented out the lines in the HTML section on the widget.

 

When we upgraded to Vancouver, this came in the list of skipped records. I reviewed and merged any changes that came with the upgrade and put my changes back. So, yes it will come as customized when you upgrade.

 

Best regards,

Ruaa

Instead of commenting things out, in the server side code of the widget, I was able to change

identityCenterEnabled : pm.isActive('com.snc.identity_center') && !gs.getUser().getRoles().contains("snc_external")

to

identityCenterEnabled : pm.isActive('com.snc.identity_center') && gs.getUser().getRoles().contains("admin")

 

and then, for good measure, I changed

mfaEnabled: gs.getProperty('glide.authenticate.multifactor', "false") == "true"

to

mfaEnabled: gs.getProperty('glide.authenticate.multifactor', "false") == "true" && gs.getUser().getRoles().contains("admin"),

 

which has hidden these links, except from admins.

Kristin Acree
Mega Sage

i dont see an option to uninstall the plugin.... is the only option the HTML code at that point?

Reena Patil
Tera Contributor

Hi @Ruaa1 ,

You can achieve this without cloning widget.

Open Profile in portal and go to User preferences Section Ctrl+right click, Click Instance in Page Editor.
This will Open User Profile page in Designer, Go to CSS section and add Below code

This will remove the "View identity Centre" From User Preference.

 

.vb3261ba253710110880bddeeff7b121d .list-group-item .btn-link {
display: none;
} 

 

 

User_preferences.png