1. Packages
  2. Github Provider
  3. API Docs
  4. getOrganizationExternalIdentities
GitHub v6.7.0 published on Friday, Feb 28, 2025 by Pulumi

github.getOrganizationExternalIdentities

Explore with Pulumi AI

Use this data source to retrieve each organization member’s SAML or SCIM user attributes.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";

const all = github.getOrganizationExternalIdentities({});
Copy
import pulumi
import pulumi_github as github

all = github.get_organization_external_identities()
Copy
package main

import (
	"github.com/pulumi/pulumi-github/sdk/v6/go/github"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.GetOrganizationExternalIdentities(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Github = Pulumi.Github;

return await Deployment.RunAsync(() => 
{
    var all = Github.GetOrganizationExternalIdentities.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.GithubFunctions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var all = GithubFunctions.getOrganizationExternalIdentities();

    }
}
Copy
variables:
  all:
    fn::invoke:
      function: github:getOrganizationExternalIdentities
      arguments: {}
Copy

Using getOrganizationExternalIdentities

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getOrganizationExternalIdentities(opts?: InvokeOptions): Promise<GetOrganizationExternalIdentitiesResult>
function getOrganizationExternalIdentitiesOutput(opts?: InvokeOptions): Output<GetOrganizationExternalIdentitiesResult>
Copy
def get_organization_external_identities(opts: Optional[InvokeOptions] = None) -> GetOrganizationExternalIdentitiesResult
def get_organization_external_identities_output(opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationExternalIdentitiesResult]
Copy
func GetOrganizationExternalIdentities(ctx *Context, opts ...InvokeOption) (*GetOrganizationExternalIdentitiesResult, error)
func GetOrganizationExternalIdentitiesOutput(ctx *Context, opts ...InvokeOption) GetOrganizationExternalIdentitiesResultOutput
Copy

> Note: This function is named GetOrganizationExternalIdentities in the Go SDK.

public static class GetOrganizationExternalIdentities 
{
    public static Task<GetOrganizationExternalIdentitiesResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetOrganizationExternalIdentitiesResult> Invoke(InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOrganizationExternalIdentitiesResult> getOrganizationExternalIdentities(InvokeOptions options)
public static Output<GetOrganizationExternalIdentitiesResult> getOrganizationExternalIdentities(InvokeOptions options)
Copy
fn::invoke:
  function: github:index/getOrganizationExternalIdentities:getOrganizationExternalIdentities
  arguments:
    # arguments dictionary
Copy

getOrganizationExternalIdentities Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Identities List<GetOrganizationExternalIdentitiesIdentity>
An Array of identities returned from GitHub
Id string
The provider-assigned unique ID for this managed resource.
Identities []GetOrganizationExternalIdentitiesIdentity
An Array of identities returned from GitHub
id String
The provider-assigned unique ID for this managed resource.
identities List<GetOrganizationExternalIdentitiesIdentity>
An Array of identities returned from GitHub
id string
The provider-assigned unique ID for this managed resource.
identities GetOrganizationExternalIdentitiesIdentity[]
An Array of identities returned from GitHub
id str
The provider-assigned unique ID for this managed resource.
identities Sequence[GetOrganizationExternalIdentitiesIdentity]
An Array of identities returned from GitHub
id String
The provider-assigned unique ID for this managed resource.
identities List<Property Map>
An Array of identities returned from GitHub

Supporting Types

GetOrganizationExternalIdentitiesIdentity

Login This property is required. string
The username of the GitHub user
SamlIdentity This property is required. Dictionary<string, string>
An Object containing the user's SAML data. This object will be empty if the user is not managed by SAML.
ScimIdentity This property is required. Dictionary<string, string>
An Object contining the user's SCIM data. This object will be empty if the user is not managed by SCIM.
Login This property is required. string
The username of the GitHub user
SamlIdentity This property is required. map[string]string
An Object containing the user's SAML data. This object will be empty if the user is not managed by SAML.
ScimIdentity This property is required. map[string]string
An Object contining the user's SCIM data. This object will be empty if the user is not managed by SCIM.
login This property is required. String
The username of the GitHub user
samlIdentity This property is required. Map<String,String>
An Object containing the user's SAML data. This object will be empty if the user is not managed by SAML.
scimIdentity This property is required. Map<String,String>
An Object contining the user's SCIM data. This object will be empty if the user is not managed by SCIM.
login This property is required. string
The username of the GitHub user
samlIdentity This property is required. {[key: string]: string}
An Object containing the user's SAML data. This object will be empty if the user is not managed by SAML.
scimIdentity This property is required. {[key: string]: string}
An Object contining the user's SCIM data. This object will be empty if the user is not managed by SCIM.
login This property is required. str
The username of the GitHub user
saml_identity This property is required. Mapping[str, str]
An Object containing the user's SAML data. This object will be empty if the user is not managed by SAML.
scim_identity This property is required. Mapping[str, str]
An Object contining the user's SCIM data. This object will be empty if the user is not managed by SCIM.
login This property is required. String
The username of the GitHub user
samlIdentity This property is required. Map<String>
An Object containing the user's SAML data. This object will be empty if the user is not managed by SAML.
scimIdentity This property is required. Map<String>
An Object contining the user's SCIM data. This object will be empty if the user is not managed by SCIM.

Package Details

Repository
GitHub pulumi/pulumi-github
License
Apache-2.0
Notes
This Pulumi package is based on the github Terraform Provider.