Return principal and attributes