See also - Changing your network password - Windows
This process must be completed while either connected directly to the corporate network or via VPN
On your Mac, choose Apple menu
> System Settings, then click Users & Groups.
Click the "i" next to your name, then click "Change" next to Password.
Enter your current password in the Old Password field.
Enter your new password in the New Password field, then enter it again in the Verify field.
Click Change Password.
NOTE: Changing your network password not only changes your password for logging into Windows and Mac computers, but also for logging into Microsoft 365 (including Outlook, Teams, OneDrive, etc.), Google Workspace (including Google Drive, Gmail, etc), and your Apple ID.