Construction of a query for entity with 'any' array type

How to fetch all entities with specific value in array? I got such definition of user entity:

  storage:
    entities:
      - name: user
        attributes:
          permissions:
            type: any

and I want to fetch all users that have “read” permission.