mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-27 19:39:52 +00:00
62 lines
1.9 KiB
GraphQL
62 lines
1.9 KiB
GraphQL
![]() |
query listRoles($input: ListRolesInput!) {
|
||
|
listRoles(input: $input) {
|
||
|
start
|
||
|
count
|
||
|
total
|
||
|
roles {
|
||
|
urn
|
||
|
type
|
||
|
name
|
||
|
description
|
||
|
users: relationships(input: { types: ["IsMemberOfRole"], direction: INCOMING, start: 0, count: 10 }) {
|
||
|
start
|
||
|
count
|
||
|
total
|
||
|
relationships {
|
||
|
entity {
|
||
|
... on CorpUser {
|
||
|
urn
|
||
|
type
|
||
|
username
|
||
|
info {
|
||
|
active
|
||
|
displayName
|
||
|
title
|
||
|
firstName
|
||
|
lastName
|
||
|
fullName
|
||
|
}
|
||
|
editableProperties {
|
||
|
displayName
|
||
|
title
|
||
|
pictureLink
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
policies: relationships(
|
||
|
input: { types: ["IsAssociatedWithRole"], direction: INCOMING, start: 0, count: 10 }
|
||
|
) {
|
||
|
start
|
||
|
count
|
||
|
total
|
||
|
relationships {
|
||
|
entity {
|
||
|
... on DataHubPolicy {
|
||
|
urn
|
||
|
type
|
||
|
name
|
||
|
relationships(input: { types: ["IsAssociatedWithRole"], direction: OUTGOING }) {
|
||
|
start
|
||
|
count
|
||
|
total
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|