Condition on $user_storage I am using the following code.

  $user_storage = \Drupal::service('entity_type.manager')-&gt;getStorage('user');

    $ids = $user_storage-&gt;getQuery()
      -&gt;condition('status', 1)
      -&gt;condition('roles', 'directeur_cr_')
      -&gt;execute();
    $users = $user_storage-&gt;loadMultiple($ids);


I want to add a condition that is verified when the role is directeur_cr_ or comptable_cr_.

How can I add this condition?
You can use orConditionGroup, but the IN operator is a shorthand for OR conditions on the same field:

-&gt;condition('roles', ['role1', 'role2'], 'IN')