If your Apple Account is grayed out in Settings
If you go to the Settings app on your iPhone or iPad and can't tap your Apple Account, you might have restrictions turned on. Learn how to check if you turned on restrictions for your Apple Account, and how to turn them off.
Content & Privacy Restrictions are a part of Screen Time designed to prevent children from making unwanted changes to their account. If you turned this on for any other reason and want to make changes to your account, you can use these steps on your iPhone or iPad.
If you can't select your Apple Account
Open the Settings app, then tap Screen Time.
Tap Content & Privacy Restrictions.
If Content & Privacy Restrictions is turned on, scroll down to the Allow Changes section.
Tap Account Changes, and set it to Allow. If asked, enter your Screen Time passcode.
If you can't select other options in Settings
Open the Settings app, then tap Screen Time.
Tap Content & Privacy Restrictions.
If Content & Privacy Restrictions is turned on, scroll down and check if any settings are set to Don't Allow.
If so, tap the setting, then choose Allow. If asked, enter your Screen Time passcode.
If you're a child in a family group
If you're a child in a family group and your parent or guardian set up parental controls on your device, you need to ask them to enter their Screen Time passcode to allow changes to your device settings.