Skip to content

Commit f971463

Browse files
authored
Add note about GitHub username membership status
1 parent d4a7f81 commit f971463

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

graphql/queries/org-saml-identities-filtered-by-nameid-username.graphql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# You will need to replace <ORG_NAME> and <SAML Name ID> with the actual GitHub organization name and the SAML `NameID` value that you're searching stored external identities for in the GitHub organization.
22
# For GitHub Enterprise Cloud organizations that have SAML configured at the organization level, this will query the stored SAML `nameId` and SCIM `userName` external identity values in the GitHub organization, and if one is found that matches the value specified for `<SAML Name ID>`, it will print out the SAML `nameId` and GitHub username for that stored external identity.
33

4+
# Note that the query below will not tell you if the GitHub username/account associated with this linked identity is still a member of the organization. Organization owners can navigate to the Organization > People > Members UI and search for the user to determine this.
5+
46
# This query will not print out a user username (`login`) value if there is not a GitHub user account linked to this SAML identity.
57
# Pagination shouldn't be needed since there shouldn't be multiple entries in the organization that have the same SAML `NameID` or SCIM `userName`. However, for more information on pagination. There is also an example of pagination in simple-pagination-example.graphql.
68

79
query OrganizationIdentitiesBySAMLNameID {
8-
organization(login: <ORG_NAME>) {
10+
organization(login: "<ORG_NAME>") {
911
samlIdentityProvider {
1012
externalIdentities(userName:"<SAML Name ID>", first: 25) {
1113
edges {

0 commit comments

Comments
 (0)