function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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?