BE: Add type field to UserCore

This is the backend portion of #481925 (closed)

This comment and this propose modifications to the User type to distinguish placeholder users from other users.