Updated user_roles to include an optional search realm