github / github/platform-samples

find nameId of specific user with a given loginid in org

Open
#414 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
2.2k
Forks
1.9k
Avg merge
7d 19h
Merged PRs (30d)
1

Description

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
}
}
}
}
}
```

Contributor guide

Open the contributing guide

Research direction

Start with the Users GraphQL query included in the issue and inspect the relevant organization external-identities fields. Determine whether the query can target a specific login and document the resulting query or limitation, including how it returns that user's nameId.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql
Domain
api
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.