Replies: 2 comments
-
It would be cool to have the user group available in GraphQL! |
Beta Was this translation helpful? Give feedback.
0 replies
-
This came up in support, so just sharing this as example of a way you could get the group names for a user.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I would like to have possibility to fetch user group with GraphQL. As an example of use case, I have a user group in Craft called "Manager", and I would like to show user role on the headless frontend (not a twig template) based on the group handle.
I see that it is possible to query users by group or group ID in GraphQL, but it's not possible to fetch group value.
Could you please add user group to the UserInterface so it can be fetched by GraphQL
Something like this:
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions