I found reference to an invalid user in a sandbox yesterday: LastModifiedById on an opportunity had a Salesforce ID that was not available in the org, and opp.getSObject('LastModifiedBy')
returns null
.
In the UI, the user name is Rollup Helper (which is a currently installed managed package), but the name is not clickable.
Two questions:
- Are users created by managed packages inaccessible to classes outside the package namespace?
- How do you retrieve such a user's name in Apex?