Shaoyi Zhang
10/11/2021, 11:08 PMShaoyi Zhang
10/11/2021, 11:11 PM{
tenant(where: {id: {_eq: "xxxxxxxxxxxxxx"}}) {
id
name
memberships {
id
}
}
}
Zach Angell
query {
user_view_same_tenant {
username
first_name
last_name
email
... etc
}
}
For adding new members, you can use the create_membership_invitation
mutation
mutation ($input: create_membership_invitation_input!) {
create_membership_invitation(input: $input) {
id
}
}
where input is something like
{
"input": {
"email": "<mailto:zach+1@prefect.io|zach+1@prefect.io>",
"role": "USER",
"role_id": <optionally pass the id of the role for the new user>,
"tenant_id": <optional, inferred from api key>
}
}
Shaoyi Zhang
10/11/2021, 11:33 PM