get User External Identity
suspend fun getUserExternalIdentity(argument: GetUserExternalIdentityPlainArgs): GetUserExternalIdentityResult
Use this data source to retrieve a specific organization member's SAML or SCIM user attributes.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const exampleUser = github.getUserExternalIdentity({
username: "example-user",
});
Content copied to clipboard
import pulumi
import pulumi_github as github
example_user = github.get_user_external_identity(username="example-user")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Github = Pulumi.Github;
return await Deployment.RunAsync(() =>
{
var exampleUser = Github.GetUserExternalIdentity.Invoke(new()
{
Username = "example-user",
});
});
Content copied to clipboard
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.GetUserExternalIdentity(ctx, &github.GetUserExternalIdentityArgs{
Username: "example-user",
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.GithubFunctions;
import com.pulumi.github.inputs.GetUserExternalIdentityArgs;
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 exampleUser = GithubFunctions.getUserExternalIdentity(GetUserExternalIdentityArgs.builder()
.username("example-user")
.build());
}
}
Content copied to clipboard
variables:
exampleUser:
fn::invoke:
function: github:getUserExternalIdentity
arguments:
username: example-user
Content copied to clipboard
Return
A collection of values returned by getUserExternalIdentity.
Parameters
argument
A collection of arguments for invoking getUserExternalIdentity.
Return
A collection of values returned by getUserExternalIdentity.
Parameters
username
The username of the member to fetch external identity for.
See also
suspend fun getUserExternalIdentity(argument: suspend GetUserExternalIdentityPlainArgsBuilder.() -> Unit): GetUserExternalIdentityResult
Return
A collection of values returned by getUserExternalIdentity.
Parameters
argument
Builder for com.pulumi.github.kotlin.inputs.GetUserExternalIdentityPlainArgs.