removing the ability to add a picture to my profile

Jack62
Giga Guru

We have had an issue in which our users are uploading high resolutions picture to the profile section of the portal that then causes performance issues in our instance. We would like to remove the ability to upload photos completely (although knowing how to restrict the resolution would be helpful) the screenshot shows where in the portal we mean (my profile, top right)

 

Jack62_0-1673182917023.png

 

 

 

6 REPLIES 6

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Check this out

https://www.servicenow.com/community/now-platform-forum/add-quot-remove-picture-quot-option-to-quot-...

Please hit like and mark my response as correct if that helps
Regards,
Musab

AnubhavRitolia
Mega Sage
Mega Sage

Hi @Jack62 

 

You can achieve it by small changes.

 

You need to first clone OOTB Widget 'User Profile' and can name it something like 'User Profile No Upload Picture' or anything you wise or require.

 

In the HTML Template part of new Widget, remove or comment out from Line 25 to 27 as below:

 

AnubhavRitolia_0-1673199755696.png

 

This will remove the 'Upload Picture' button.

 

Now replace 'User Profile' widget with your new Widget in the Page 'User Profile (id=user_profile)' and see the result as below:

 

AnubhavRitolia_1-1673199930453.png

 

 

 

NOTE: I have show for SP portal only. If you have to remove it from different portals also, you have to replace this widget on those respective portal Profile pages also.

 

 

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

Hey

 

Thanks for the response

I have created the cloned widget as suggested (which makes sense) but I am getting two issues, one is an error regarding glide properties and the other is within the widget (showing below) which is not finding the logged in user. The out of the box widget loads as expected.

 

Jack62_2-1673212108103.png

 

 

Hi @Jack62 

 

You can use a trick here for that even you don't need to clone the widget.

 

In the widget instance of user profile widget, in css just put below line of code.

 

.send-message {
    display: none;
}

 

SaurabhGupta_0-1673217028214.png

 

Upload button will become invisible.

 

SaurabhGupta_1-1673217074755.png

 

 

 

 


Thanks and Regards,

Saurabh Gupta