2

I want all the users but filtered by User Group:

query getAllUsers {
  users {
    id,
    username
  }
}

I cannot see any query parameter on the Schema

1

This is not possible on Craft 3.3.x but group and groupId have been added since 3.4.0-beta.5 (commit)

With the update, you can do:

query getAllUsers{
  users(groupId:1) {
    id,
    username
  }
}

Or:

query getAllUsers{
  users(group:"groupHandle") {
    id,
    username
  }
}
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.