mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-23 17:39:59 +00:00
148 lines
3.5 KiB
GraphQL
148 lines
3.5 KiB
GraphQL
query getUser($urn: String!, $groupsCount: Int!) {
|
|
corpUser(urn: $urn) {
|
|
urn
|
|
username
|
|
isNativeUser
|
|
info {
|
|
active
|
|
displayName
|
|
title
|
|
firstName
|
|
lastName
|
|
fullName
|
|
email
|
|
departmentName
|
|
}
|
|
editableProperties {
|
|
slack
|
|
phone
|
|
pictureLink
|
|
aboutMe
|
|
teams
|
|
skills
|
|
displayName
|
|
title
|
|
email
|
|
}
|
|
globalTags {
|
|
...globalTagsFields
|
|
}
|
|
relationships(input: { types: ["IsMemberOfGroup"], direction: OUTGOING, start: 0, count: $groupsCount }) {
|
|
start
|
|
count
|
|
total
|
|
relationships {
|
|
entity {
|
|
... on CorpGroup {
|
|
urn
|
|
type
|
|
name
|
|
info {
|
|
displayName
|
|
description
|
|
email
|
|
}
|
|
relationships(input: { types: ["IsMemberOfGroup"], direction: INCOMING }) {
|
|
start
|
|
count
|
|
total
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query getUserGroups($urn: String!, $start: Int!, $count: Int!) {
|
|
corpUser(urn: $urn) {
|
|
relationships(input: { types: ["IsMemberOfGroup"], direction: OUTGOING, start: $start, count: $count }) {
|
|
start
|
|
count
|
|
total
|
|
relationships {
|
|
entity {
|
|
... on CorpGroup {
|
|
urn
|
|
type
|
|
name
|
|
info {
|
|
displayName
|
|
description
|
|
email
|
|
}
|
|
}
|
|
relationships(input: { types: ["IsMemberOfGroup"], direction: INCOMING }) {
|
|
start
|
|
count
|
|
total
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query listUsers($input: ListUsersInput!) {
|
|
listUsers(input: $input) {
|
|
start
|
|
count
|
|
total
|
|
users {
|
|
urn
|
|
username
|
|
isNativeUser
|
|
info {
|
|
active
|
|
displayName
|
|
title
|
|
firstName
|
|
lastName
|
|
fullName
|
|
email
|
|
}
|
|
editableProperties {
|
|
displayName
|
|
pictureLink
|
|
teams
|
|
title
|
|
skills
|
|
}
|
|
status
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation removeUser($urn: String!) {
|
|
removeUser(urn: $urn)
|
|
}
|
|
|
|
mutation updateUserStatus($urn: String!, $status: CorpUserStatus!) {
|
|
updateUserStatus(urn: $urn, status: $status)
|
|
}
|
|
|
|
mutation updateCorpUserProperties($urn: String!, $input: CorpUserUpdateInput!) {
|
|
updateCorpUserProperties(urn: $urn, input: $input) {
|
|
urn
|
|
}
|
|
}
|
|
|
|
mutation createNativeUserInviteToken {
|
|
createNativeUserInviteToken {
|
|
inviteToken
|
|
}
|
|
}
|
|
|
|
query getNativeUserInviteToken {
|
|
getNativeUserInviteToken {
|
|
inviteToken
|
|
}
|
|
}
|
|
|
|
mutation createNativeUserResetToken($input: CreateNativeUserResetTokenInput!) {
|
|
createNativeUserResetToken(input: $input) {
|
|
resetToken
|
|
}
|
|
}
|
|
|