It seems like you altered the core UserPartRecord
class (added InstitutionId
property), but haven't altered the UserPart
to expose it. UserPart
is a wrapper around that record that exposes record properties.
You can always access the underlying record data directly like this:
WorkContext.CurrentUser.As<UserPart>().Record.InstitutionId