Skip to content

find nameId of specific user with a given loginid in org #414

@davidkarlsen

Description

@davidkarlsen

The query [1] will list all users with samlIds in the org, but how can I craft the query to search for a user with a specific login?

[1]

query Users($org: String!, $first: Int = 100, $after: String) {
      organization(login: $org) {
        samlIdentityProvider {
          externalIdentities(first: $first, after: $after) {
            edges {
              node {
                guid,
                samlIdentity {
                  nameId
                }
                user {
                  login
                }
              }
            }
            pageInfo {
              hasNextPage
              endCursor
            }
          }
        }
      }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions