Hi @Jarrett Trapani ,
You can use the SharePoint Framework (SPFx) to build client-side web parts. SPFx allows you to use modern JavaScript frameworks and tools to create web parts that run in the context of a SharePoint page.For fetching user information from Active Directory and displaying it in a web part, you can use the Microsoft Graph API. This API allows you to access various Microsoft 365 services, including user information from Azure Active Directory.
Note: For security, the password itself is never returned in the object and the password property is always null.
No matter what method is used, there is no way to get the user's password.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.