Allow roles to serialize correctly for mongo storage