1. Packages
  2. Github Provider
  3. API Docs
  4. getOrganizationSecurityManagers
GitHub v6.8.0 published on Thursday, Oct 23, 2025 by Pulumi

github.getOrganizationSecurityManagers

Get Started
github logo
GitHub v6.8.0 published on Thursday, Oct 23, 2025 by Pulumi

    Use this data source to retrieve the security managers for an organization.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as github from "@pulumi/github";
    
    const test = github.getOrganizationSecurityManagers({});
    
    import pulumi
    import pulumi_github as github
    
    test = github.get_organization_security_managers()
    
    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.GetOrganizationSecurityManagers(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Github = Pulumi.Github;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Github.GetOrganizationSecurityManagers.Invoke();
    
    });
    
    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.getOrganizationSecurityManagers(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: github:getOrganizationSecurityManagers
          arguments: {}
    

    Using getOrganizationSecurityManagers

    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 getOrganizationSecurityManagers(opts?: InvokeOptions): Promise<GetOrganizationSecurityManagersResult>
    function getOrganizationSecurityManagersOutput(opts?: InvokeOptions): Output<GetOrganizationSecurityManagersResult>
    def get_organization_security_managers(opts: Optional[InvokeOptions] = None) -> GetOrganizationSecurityManagersResult
    def get_organization_security_managers_output(opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationSecurityManagersResult]
    func GetOrganizationSecurityManagers(ctx *Context, opts ...InvokeOption) (*GetOrganizationSecurityManagersResult, error)
    func GetOrganizationSecurityManagersOutput(ctx *Context, opts ...InvokeOption) GetOrganizationSecurityManagersResultOutput

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

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

    getOrganizationSecurityManagers Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Teams List<GetOrganizationSecurityManagersTeam>
    An list of GitHub teams. Each team block consists of the fields documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Teams []GetOrganizationSecurityManagersTeam
    An list of GitHub teams. Each team block consists of the fields documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    teams List<GetOrganizationSecurityManagersTeam>
    An list of GitHub teams. Each team block consists of the fields documented below.
    id string
    The provider-assigned unique ID for this managed resource.
    teams GetOrganizationSecurityManagersTeam[]
    An list of GitHub teams. Each team block consists of the fields documented below.
    id str
    The provider-assigned unique ID for this managed resource.
    teams Sequence[GetOrganizationSecurityManagersTeam]
    An list of GitHub teams. Each team block consists of the fields documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    teams List<Property Map>
    An list of GitHub teams. Each team block consists of the fields documented below.

    Supporting Types

    GetOrganizationSecurityManagersTeam

    Id int
    Unique identifier of the team.
    Name string
    Name of the team.
    Permission string
    Permission that the team will have for its repositories.
    Slug string
    Name based identifier of the team.
    Id int
    Unique identifier of the team.
    Name string
    Name of the team.
    Permission string
    Permission that the team will have for its repositories.
    Slug string
    Name based identifier of the team.
    id Integer
    Unique identifier of the team.
    name String
    Name of the team.
    permission String
    Permission that the team will have for its repositories.
    slug String
    Name based identifier of the team.
    id number
    Unique identifier of the team.
    name string
    Name of the team.
    permission string
    Permission that the team will have for its repositories.
    slug string
    Name based identifier of the team.
    id int
    Unique identifier of the team.
    name str
    Name of the team.
    permission str
    Permission that the team will have for its repositories.
    slug str
    Name based identifier of the team.
    id Number
    Unique identifier of the team.
    name String
    Name of the team.
    permission String
    Permission that the team will have for its repositories.
    slug String
    Name based identifier of the team.

    Package Details

    Repository
    GitHub pulumi/pulumi-github
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the github Terraform Provider.
    github logo
    GitHub v6.8.0 published on Thursday, Oct 23, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate