67 lines
1.6 KiB
GraphQL

query getUser($urn: String!, $groupsCount: Int!) {
corpUser(urn: $urn) {
urn
username
info {
active
displayName
title
firstName
lastName
fullName
email
}
editableInfo {
pictureLink
teams
skills
}
globalTags {
...globalTagsFields
}
relationships(types: ["IsMemberOfGroup"], direction: OUTGOING, start: 0, count: $groupsCount) {
start
count
total
relationships {
entity {
... on CorpGroup {
urn
type
name
info {
displayName
description
email
}
}
}
}
}
}
}
query getUserGroups($urn: String!, $start: Int!, $count: Int!) {
corpUser(urn: $urn) {
relationships(types: ["IsMemberOfGroup"], direction: OUTGOING, start: $start, count: $count) {
start
count
total
relationships {
entity {
... on CorpGroup {
urn
type
name
info {
displayName
description
email
}
}
}
}
}
}
}