Provide support for LivePersonaCard in 3rd-party solutions
The LivePersonaCard control, which renders a user's full profile card, can be loaded in a SPFx solution with LoadByComponentId. However, it is unclear whether this will be supported in the future.
The PnP reusable controls has a Pull Request to provide developers with a LivePersonaCard control, but it is currently in holding pattern until it can be confirmed that LivePersonaCard (and LoadByComponentId) will be supported.
Please empower 3rd party developers to build rich user-aware SharePoint solutions by providing solution for the live persona card.
There is now access to the LPC via the Graph Toolkit at https://docs.microsoft.com/en-us/graph/toolkit/components/person-card - but aware that it's not the complete card.
Appreciate the comments (and knew of scenario's), and having them written here will help drive this forward. I will report back when I have more information.
João Mendes commented
React- Diretory Web Part available on https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-directory
use LPC, to quick access user information on search company directory.
Some real world scenarions:
- Custom predictive search that displays user cards as we type.
- Custom Activity Stream webpart that shows item authors.
Hovering over the user cards and seening this amazing Persona card provides a great user experience.
Hugo Bernier commented
Throughout SharePoint, the user experience is consistent: when you see a person's name, you can mouse over their name to get more information and/or connect with them.
The goal is to allow developers to build SPFx web parts which handle displaying a user profile in a manner that is consistent with the out-of-the-box web parts.
For example, if I wanted to build an employee directory web part, a org chart web part, or an office map web part.
A real life scenario: we recently had to build a web part for a student portal for a large college which shows a student's advisor. We used the Fabric UI Persona Card, but we wanted to make it easier for students to get in touch with their advisors, book an appointment, etc. We had to write everything with custom code, but it would have been a lot easier with the LPC.
I hope this answers your question?
It would be helpful to get some concrete scenarios for exposing the LPC (Live Persona Card) to third parties. What scenarios will it enable or help which is not solved today by the existing web parts?