User Profile Page in ServiceNow Communities

Anne Anaba
Tera Contributor

Hi, I would like to know if it si possible to change/update the fields/columns in the 'user profile page' inside communities

1 ACCEPTED SOLUTION

Deepak Shaerma
Kilo Sage

Hi @Anne Anaba 

Yes, you can modify

- Navigate to the portal where the community or user profile resides.
- Identify the page which serves as the User Profile page. This can usually be done through the Service Portal configuration or by looking at the URL when you’re on the user profile page within the portal.
- Once you have located the page, identify the widgets used to display user profile information. Commonly, there’s a widget specifically designed for showing user details.

Modify Existing Widget: If the changes you need to make are minor (e.g., adding a field that already exists on the user record), you might be able to modify the existing widget directly.
- Go to Service Portal > Widgets and search for the widget used for the user profile.
- Make changes in the HTML, CSS, or Server Script as needed. For instance, to display a new user field, you would typically modify the Server Script to pass the new field data to the widget and adjust the HTML to display it.

Create a New Widget: For more significant changes or if you want to maintain upgradeability by not modifying out-of-box widgets, consider creating a new widget.
- Go to Service Portal > Widgets, and click on “New” to create a new widget.
- Develop your own HTML, CSS, and Server Script to display the user profile information as needed. Make sure to follow best practices for accessing and displaying user data securely.

- Once your widget is ready (either modified or newly created), you need to add it to the User Profile page.
- Navigate to Service Portal > Pages, find the User Profile page, and go into the page editor.
- Replace the existing user profile widget with your new or modified widget using the “Select Widget” option in the page editor.

Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me..
- Keep Learning ‌‌
Thanks & Regards 
Deepak Sharma 

 

View solution in original post

1 REPLY 1

Deepak Shaerma
Kilo Sage

Hi @Anne Anaba 

Yes, you can modify

- Navigate to the portal where the community or user profile resides.
- Identify the page which serves as the User Profile page. This can usually be done through the Service Portal configuration or by looking at the URL when you’re on the user profile page within the portal.
- Once you have located the page, identify the widgets used to display user profile information. Commonly, there’s a widget specifically designed for showing user details.

Modify Existing Widget: If the changes you need to make are minor (e.g., adding a field that already exists on the user record), you might be able to modify the existing widget directly.
- Go to Service Portal > Widgets and search for the widget used for the user profile.
- Make changes in the HTML, CSS, or Server Script as needed. For instance, to display a new user field, you would typically modify the Server Script to pass the new field data to the widget and adjust the HTML to display it.

Create a New Widget: For more significant changes or if you want to maintain upgradeability by not modifying out-of-box widgets, consider creating a new widget.
- Go to Service Portal > Widgets, and click on “New” to create a new widget.
- Develop your own HTML, CSS, and Server Script to display the user profile information as needed. Make sure to follow best practices for accessing and displaying user data securely.

- Once your widget is ready (either modified or newly created), you need to add it to the User Profile page.
- Navigate to Service Portal > Pages, find the User Profile page, and go into the page editor.
- Replace the existing user profile widget with your new or modified widget using the “Select Widget” option in the page editor.

Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me..
- Keep Learning ‌‌
Thanks & Regards 
Deepak Sharma