Forum Discussion
How to call User Contact Card
Hi
We have a custom webpart that we create that allows users to search through the 365 User directory.
This works fine, however what we want to do is when a user name is found, we want the user to be able to click on that user name and it pull up the 365 Contact Card for that user eg the one you get when you click on user in Outlook etc... so this one....
Anyone any idea how to do this?
Thanks
1 Reply
If you have developed your custom web part using SPFx, I will suggest to use the LivePersona control from @pnp/spfx-controls-react library:
Source: LivePersona control
This is possible using Microsoft graph toolkit as well: Person-Card component in Microsoft Graph Toolkit
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.