Is there a way to retrieve a full list of users on a Cloud tenant? I couldn’t find anything on the G...
j
Is there a way to retrieve a full list of users on a Cloud tenant? I couldn’t find anything on the GraphQL docs
k
Hey @Jacob Blanco, try this query?
Copy code
query {
  user_view_same_tenant {
    username
    first_name
    last_name
  }
}
j
Thanks, that’s perfect
e
@Kevin Kho - would we be able to get schema for the user info ? similar to https://github.com/PrefectHQ/server/tree/master/src/prefect_server/graphql/schema
k
Hey @Eldho Suresh, I am a bit unclear what you are asking, do you want to know what the available fields that you can pull through the API are?
I guess that code is not open source since it is tied to Prefect Cloud so the only way to do it is through the Interactive API tab of the UI
j
^ Correct the Interactive API shows the full schema.
e
Thought so. Was trying to mock the graphQL API for testing and it would be easier if we had the schema file. Will check out the interactive API docs and build it out. Thanks @Jacob Blanco @Kevin Kho
👍 1