Skip to content

Commit 16201f7

Browse files
authored
Create saml-identities-single-organization.graphql
1 parent 7eea681 commit 16201f7

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# For GitHub Enterprise Cloud organizations that have SAML configured at the organization level, this query will print out a list of the first 100 SAML identities (specifically the `nameid` attribute value in these SAML identities) in the organization and the GitHub username linked to them.
2+
# This query will not print out a user username (`login`) value if there is not a GitHub user account linked to this SAML identity.
3+
4+
5+
query OrgSAMLidentities {
6+
organization(login: "organization name") {
7+
samlIdentityProvider {
8+
externalIdentities(first: 100) {
9+
edges {
10+
node {
11+
samlIdentity {
12+
nameId
13+
}
14+
user {
15+
login
16+
}
17+
}
18+
}
19+
pageInfo {
20+
endCursor
21+
}
22+
}
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)