If your Apple Account is greyed out in Settings
If you go to the Settings app on your iPhone or iPad and can't tap on your Apple Account, you may have restrictions turned on. Find out how to check if you have 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’ve turned this on for any other reason and want to make changes to your account, you can follow 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 has 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.