Skip to content

Commit 0f47f0d

Browse files
committed
Add GraphQL query to list SCIM accounts for an EMU
This commit adds a GraphQL query to list SCIM accounts for an EMU (Enterprise Managed Users) enterprise account. The query retrieves details about enterprise members and their SCIM account information, which is useful for managing user accounts in GitHub Enterprise Cloud.
1 parent 960f0b1 commit 0f47f0d

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This GraphQL query can be used to generate a list of enterprise members and their SCIM account details in a GitHub Enterprise Cloud with Managed Users (EMU) enterprise account.
2+
#
3+
# Replace `ENTEPRISE_SLUG` with the slug of your enterprise. To get more than 10 members, you can adjust the "first" parameter.
4+
#
5+
# Note: the output will include suspended users (identified with their obfuscated account name), but it will not include personal user accounts that are not part of the EMU (Enterprise Managed Users) system.
6+
7+
query ListAllEnterpriseUsers {
8+
enterprise(slug: "ENTEPRISE_SLUG") {
9+
ownerInfo {
10+
samlIdentityProvider {
11+
externalIdentities(first: 10) {
12+
nodes {
13+
user {
14+
login
15+
name
16+
}
17+
scimIdentity {
18+
username
19+
groups
20+
}
21+
}
22+
}
23+
}
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)