github / github/platform-samples

Add query that lists SAML external identities for an Organization

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

Description

Business Plan hosted customers with SAML would like a way to programmatically query information about a GitHub user account's SAML identity. The following is a GraphQL query that accomplishes this for an Organization.

- [ ] Determine whether this is a standalone example for useful Business Plan hosted (SAML) queries or added under https://github.com/github/platform-samples/tree/master/graphql/queries

```
query {
organization(login: "LOGIN") {
samlIdentityProvider {
ssoUrl
externalIdentities(first: 100) {
edges {
node {
guid
samlIdentity {
nameId
}
user {
login
}
}
}
}
}
}
}
```

/cc @francisfuzz as you might be able to track down the author to see if they want to add this ☝️

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the graphql/queries directory and the issue discussion to decide whether this belongs there or as a standalone example. Use the provided organization SAML externalIdentities query as the reference, and consider the work complete when the example is placed in the agreed location and can be used to list the external identity GUID, nameId, login, and SSO URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql
Domain
api, documentation
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.