Skip to content

Commit d5b17f3

Browse files
authored
Create scim-emu-enterprises-list-scim-identities.graphql
1 parent 6162755 commit d5b17f3

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# For GitHub Enterprise Cloud enterprises that are using Enterprise Managed Users (EMUs) and have Azure AD OIDC setup in the enterprise authentication settings, this query will print a list of the first 100 SCIM identities and their GitHub usernames.
2+
# The SCIM identity attributes displayed in the query results will include the SCIM `username`, the first (`givenName`) and last (familyName`) name, and the `emails` attribute value.
3+
# The SCIM identity attributes that are stored in a GitHub EMU enterprise are based on the attributes that the external Identity Provider has previously sent for each user via the SCIM integration which leverages the GitHub EMU SCIM API.
4+
# The query will not work for EMU enterprises that are using SAML as the enterprise authentication method.
5+
6+
{
7+
enterprise(slug: "enterprise slug") {
8+
ownerInfo {
9+
oidcProvider {
10+
id
11+
providerType
12+
tenantId
13+
externalIdentities(first: 100) {
14+
totalCount
15+
edges {
16+
node {
17+
scimIdentity {
18+
username
19+
givenName
20+
familyName
21+
emails {
22+
primary
23+
type
24+
value
25+
}
26+
}
27+
user {
28+
login
29+
name
30+
}
31+
}
32+
}
33+
}
34+
}
35+
}
36+
}
37+
}
38+

0 commit comments

Comments
 (0)