-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathemu-scim-list-scim-identities.graphql
More file actions
31 lines (30 loc) · 1.38 KB
/
emu-scim-list-scim-identities.graphql
File metadata and controls
31 lines (30 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# For GitHub Enterprise Cloud enterprises that are using Enterprise Managed Users (EMUs) and SAML authentication, this GraphQL query will print a list (first 100 in this example) of the SCIM identities (specifically, the SCIM `username` attribute) and the linked GitHub usernames.
# This query will not work for enterprises that do not use EMUs, as SCIM provisioning cannot be enabled at the enterprise level for enterprises that do not use EMUs.j
# Modifying this query to also show member SAML identities will not work for EMU enterprises, since SAML identities are not currently stored for enterprises that use EMUs.
# This query will also not work for EMU enterprises that are using Azure AD OIDC for authentication.
# If there are a large number of identities/users (greater than 100), pagination will need to be used. See https://graphql.org/learn/pagination/ for details on pagination. There is an example of pagination in simple-pagination-example.graphql.
query {
enterprise(slug: "ENT_SLUG") {
ownerInfo {
samlIdentityProvider {
externalIdentities(first: 100) {
pageInfo {
hasNextPage
endCursor
}
edges{
node{
scimIdentity {
username
}
user {
login
name
}
}
}
}
}
}
}
}