Ensured effective profile (rather than real profile) is used where
appropriate, so that admin switch user functionality works correctly.
Merge pull request #199 from ORCID/dev-fixAdminSwitchUser

Dev fix admin switch user