Skip to content

Commit 34b10dd

Browse files
authored
Create scim-emu-list-enterprise-scim-identities.graphql
1 parent c18050b commit 34b10dd

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# 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.
2+
# 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
3+
# 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.
4+
# This query will also not work for EMU enterprises that are using Azure AD OIDC for authentication.
5+
6+
query {
7+
enterprise(slug: "enterprise slug") {
8+
ownerInfo {
9+
samlIdentityProvider {
10+
externalIdentities(first: 100) {
11+
pageInfo {
12+
hasNextPage
13+
endCursor
14+
}
15+
edges{
16+
node{
17+
scimIdentity {
18+
username
19+
}
20+
user {
21+
login
22+
name
23+
}
24+
}
25+
}
26+
}
27+
}
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)