2

I am the SharePoint Online administrator for my employer. My management wants me to produce or find a web part similar to the out-of-the-box Organizational Chart web part, but they want the web part to display the organization of the employee who loaded the SharePoint page, not the organization of an employee who was specified at design time.

I know how to use the Organizational Chart web part (and the People web part), but I have not been able to configure it to load the organization dynamically.

I asked AI, but AI did not have an answer that solves my problem.

1
  • Update: I have also (recently) used the PnP Framework Search Box, Search Results and Search Filters web parts to build a searchable, filterable FAQ list. I tinkered around with those web parts a bit hoping to produce the functionality my management is looking for, but I don't think PnP Framework contains the solution I need.
    – Frank
    Nov 30, 2023 at 1:50

1 Answer 1

2

Unfortunately, SharePoint online out of the box Organizational Chart web part and the People web part does not support dynamically showing the information of currently logged in user.

You will have to use the custom SharePoint framework (SPFx) web part for you requirements.

Check below SPFx samples available on GitHub which will help you to get started with:

  1. Modern Organization Chart - This web part show organization chart for current user
  2. Organisation Chart
  3. Organization Chart
  4. Tree Organization
  5. Organization Chart using VueJS

You can also enhance these web parts on your own by downloading the code of these free SPFx samples developed by community members and made available in PnP GitHub repository.

Related documentations

  1. Overview of the SharePoint Framework
  2. Build your first SharePoint client-side web part
1
  • 1
    Thank you @Ganesh! I am investigating now
    – Frank
    Nov 30, 2023 at 20:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.