Skip to main content

saml_identities

Creates, updates, deletes, gets or lists a saml_identities resource.

Overview​

Namesaml_identities
TypeResource
Idgithub.orgs.saml_identities

Fields​

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idstringThe GraphQL node ID of the external identity.
guidstringThe GUID for this identity.
saml_identityobjectThe SAML identity (name_id, username, emails[]).
scim_identityobjectThe SCIM identity (username, emails[]).
userobjectThe linked GitHub user, null for unlinked identities (login, id).

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectorgExternal identities (SAML and SCIM) linked to organization members when the organization uses SAML single sign-on. Backed by the GitHub GraphQL API (organization.samlIdentityProvider.externalIdentities). Requires organization owner access and an organization with SAML SSO configured.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
orgstringThe organization name.

SELECT examples​

External identities (SAML and SCIM) linked to organization members when the organization uses SAML single sign-on. Backed by the GitHub GraphQL API (organization.samlIdentityProvider.externalIdentities). Requires organization owner access and an organization with SAML SSO configured.

SELECT
id,
guid,
saml_identity,
scim_identity,
user
FROM github.orgs.saml_identities
WHERE org = '{{ org }}' -- required
;