'How to get Directus user data using GraphQL?

Is it possible to request Directus users' data using GraphQL query?

Even I have correct permissions, there are just two fields under query type.

fields



Solution 1:[1]

Yes, this is possible with the latest version (v9.5.0). The documentation says there’s feature parity between REST and GraphQL API.

Make sure to allow at a minimum read permissions for the ID in: Systems Collections / Directus Users

Also you’ll need to authenticate e.g. with an authorization token in the http headers:

{
 "authorization": "Bearer YOUR_TOKEN_HERE"
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Johannes