I found an easy solution to get rid of the notification that worked in my case and didn't require disabling SIP or going into recovery mode. It has been tested in MacBook Pro Intel (Big Sur v11.5
) and in MacBook Apple M1 Pro (Ventura 13.1
):
First, block your Mac from reaching the domain iprofiles.apple.com
. I use LittleSnitch as my firewall, so I blocked it there, but you can also use your hosts
file like:
sudo echo "0.0.0.0 iprofiles.apple.com" >> /etc/hosts
OR
Open the /etc/hosts
file in your MacBook by running the command below:
sudo nano /etc/hosts
Note: It will require you to input your MacBook password since it's an admin action.
Next, add the lines below at the bottom of the file:
# Block Mac from reaching the domain iprofiles.apple.com
0.0.0.0 iprofiles.apple.com
Save the file.
Then, check the current enrollment profile:
sudo profiles show -type enrollment
This will show you the current enrollment configuration your Mac has, you can even block the domain mentioned in ConfigurationURL
just to be safe. It might also return the error below:
Error fetching Device Enrollment configuration: (34000) Error Domain=MCCloudConfigurationErrorDomain Code=34000 "The device failed to request configuration from the cloud." UserInfo={NSLocalizedDescription=The device failed to request configuration from the cloud., CloudConfigurationErrorType=CloudConfigurationFatalError}
After that, proceed to delete the profile, in regular session, not recovery, although it would probably also work in recovery:
sudo profiles remove -all
Keep in mind that this command will delete all other profiles you may have, in my case, I didn't have any other.
Finally, you can check for the enrollment profile again. It would throw an error saying that it could not be retrieved given that the domain from it's retrieved is now blocked:
sudo profiles show -type enrollment
Error fetching Device Enrollment configuration: (34000) Error Domain=MCCloudConfigurationErrorDomain Code=34000 "The device failed to request configuration from the cloud." UserInfo={NSLocalizedDescription=The device failed to request configuration from the cloud., CloudConfigurationErrorType=CloudConfigurationFatalError}
And the notification is gone for good. I'll report back in the next OS upgrade to see if it comes back.