I was trying to get the managers of a SharePoint user, and I kept getting the error:
An error was encountered while retrieving the user profile
This was from a custom workflow step in an automatically started workflow. If I ran the workflow manually, it worked – but auto-started workflows failed. Continue reading “UserProfile.GetManagers : “An error was encountered while retrieving the user profile””