If your Apple ID is greyed out in Settings
If you go to Settings on your iPhone or iPad and you can't click your Apple ID, you might have restrictions turned on. Learn how to check if you turned on restrictions for your Apple ID, 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 click your Apple ID
Go to Settings, 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 click other options in Settings
Go to Settings, 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.