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

github.getOrganizationTeamSyncGroups

Explore with Pulumi AI

Use this data source to retrieve the identity provider (IdP) groups for an organization.

Example Usage

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

const test = github.getOrganizationTeamSyncGroups({});
Copy
import pulumi
import pulumi_github as github

test = github.get_organization_team_sync_groups()
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.GetOrganizationTeamSyncGroups(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 test = Github.GetOrganizationTeamSyncGroups.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 test = GithubFunctions.getOrganizationTeamSyncGroups();

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: github:getOrganizationTeamSyncGroups
      arguments: {}
Copy

Using getOrganizationTeamSyncGroups

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 getOrganizationTeamSyncGroups(opts?: InvokeOptions): Promise<GetOrganizationTeamSyncGroupsResult>
function getOrganizationTeamSyncGroupsOutput(opts?: InvokeOptions): Output<GetOrganizationTeamSyncGroupsResult>
Copy
def get_organization_team_sync_groups(opts: Optional[InvokeOptions] = None) -> GetOrganizationTeamSyncGroupsResult
def get_organization_team_sync_groups_output(opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationTeamSyncGroupsResult]
Copy
func GetOrganizationTeamSyncGroups(ctx *Context, opts ...InvokeOption) (*GetOrganizationTeamSyncGroupsResult, error)
func GetOrganizationTeamSyncGroupsOutput(ctx *Context, opts ...InvokeOption) GetOrganizationTeamSyncGroupsResultOutput
Copy

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

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

getOrganizationTeamSyncGroups Result

The following output properties are available:

Groups List<GetOrganizationTeamSyncGroupsGroup>
An Array of GitHub Identity Provider Groups. Each group block consists of the fields documented below.
Id string
The provider-assigned unique ID for this managed resource.
Groups []GetOrganizationTeamSyncGroupsGroup
An Array of GitHub Identity Provider Groups. Each group block consists of the fields documented below.
Id string
The provider-assigned unique ID for this managed resource.
groups List<GetOrganizationTeamSyncGroupsGroup>
An Array of GitHub Identity Provider Groups. Each group block consists of the fields documented below.
id String
The provider-assigned unique ID for this managed resource.
groups GetOrganizationTeamSyncGroupsGroup[]
An Array of GitHub Identity Provider Groups. Each group block consists of the fields documented below.
id string
The provider-assigned unique ID for this managed resource.
groups Sequence[GetOrganizationTeamSyncGroupsGroup]
An Array of GitHub Identity Provider Groups. Each group block consists of the fields documented below.
id str
The provider-assigned unique ID for this managed resource.
groups List<Property Map>
An Array of GitHub Identity Provider Groups. Each group block consists of the fields documented below.
id String
The provider-assigned unique ID for this managed resource.

Supporting Types

GetOrganizationTeamSyncGroupsGroup

GroupDescription This property is required. string
The description of the IdP group.
GroupId This property is required. string
The ID of the IdP group.
GroupName This property is required. string
The name of the IdP group.
GroupDescription This property is required. string
The description of the IdP group.
GroupId This property is required. string
The ID of the IdP group.
GroupName This property is required. string
The name of the IdP group.
groupDescription This property is required. String
The description of the IdP group.
groupId This property is required. String
The ID of the IdP group.
groupName This property is required. String
The name of the IdP group.
groupDescription This property is required. string
The description of the IdP group.
groupId This property is required. string
The ID of the IdP group.
groupName This property is required. string
The name of the IdP group.
group_description This property is required. str
The description of the IdP group.
group_id This property is required. str
The ID of the IdP group.
group_name This property is required. str
The name of the IdP group.
groupDescription This property is required. String
The description of the IdP group.
groupId This property is required. String
The ID of the IdP group.
groupName This property is required. String
The name of the IdP group.

Package Details

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