+ Start a Discussion

Unable to switch user profile

I am trying to switch a user's profile using Apex Code however I'm getting the following error message:

Error: This profile is used by a user who is a delegated admin and must have the view setup permission

I do not believe I have any delegated administrators defined (Admin Setup> Security Controls> Delegated Administration is empty).

Am I missing something?