...
Open 'System Preferences' from the Apple Menu
Click on the Users & Groups icon in System Preferences ('Accounts' in older versions of macOS)
Check to make certain that your account is "Mobile". If it is not, change your password via https://myworkaccount.microsoft.com/ and select Change Password from the tiles.
If it is a "Mobile" account, click once on your account name on the left to highlight it and then click the 'Change Password...' button shown below.Type in your Old password (which is your current password), then your New password and type it in again to verify it. You can type a hint in the Password Hint field in case you forget your password. Click 'Change Password'.
Restart your computer. Depending on how your Mac is set up, it may not take your new password right away (on the first login after the restart). If your new password doesn't work to login, try your old password and then keep trying your new password when it asks until it syncs.
...
Press the Ctrl + Alt + Del keys on your keyboard and select "Change a password"
On the 'Change a password' dialog, fill out the fields then press Enter key on your keyboard or the → button
If completed successfully you will receive a message that your password was changed successfully
Optionally: restart your computer
...