Sign into your Apple ID preferences on Mac
Use your Apple ID to sign into your Apple ID preferences. After you sign in, you can use Apple ID preferences to change your account name, photo, contact information, password and security settings, payment and delivery information, and more.
When you sell or give away your Mac, sign out of your Apple ID to prevent others from using accounts associated with your Apple ID.
Sign into your Apple ID preferences
On your Mac, choose Apple menu > System Preferences, then click Sign In.
Enter your Apple ID and password, then follow the onscreen instructions.
For information about changing your Apple ID account information on the Apple ID website, see your Apple ID account page.
Sign out of your Apple ID preferences
Sign out of your Apple ID account to prevent others from accessing your account information and Apple services on your Mac. For more information about signing out of your Apple ID, see If you sign out of your Apple ID preferences on Mac.
On your Mac, choose Apple menu > System Preferences, select Apple ID, then select Overview in the sidebar.
Click Sign Out.
Follow the onscreen instructions for copying and downloading your data stored in iCloud.