Convenience methods to get and set users and groups.
Re-create the principals hash from users and groups.