1. Packages
  2. Bitwarden Provider
  3. API Docs
  4. getOrgGroup
bitwarden 0.14.0 published on Tuesday, Jun 17, 2025 by maxlaverse

bitwarden.getOrgGroup

Explore with Pulumi AI

bitwarden logo
bitwarden 0.14.0 published on Tuesday, Jun 17, 2025 by maxlaverse

    Use this data source to get information on an existing organization group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bitwarden from "@pulumi/bitwarden";
    
    const terraform = bitwarden.getOrganization({
        search: "Terraform",
    });
    const engineers = terraform.then(terraform => bitwarden.getOrgGroup({
        organizationId: terraform.id,
        filterName: "Engineers",
    }));
    
    import pulumi
    import pulumi_bitwarden as bitwarden
    
    terraform = bitwarden.get_organization(search="Terraform")
    engineers = bitwarden.get_org_group(organization_id=terraform.id,
        filter_name="Engineers")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/bitwarden/bitwarden"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		terraform, err := bitwarden.GetOrganization(ctx, &bitwarden.GetOrganizationArgs{
    			Search: pulumi.StringRef("Terraform"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = bitwarden.GetOrgGroup(ctx, &bitwarden.GetOrgGroupArgs{
    			OrganizationId: terraform.Id,
    			FilterName:     pulumi.StringRef("Engineers"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Bitwarden = Pulumi.Bitwarden;
    
    return await Deployment.RunAsync(() => 
    {
        var terraform = Bitwarden.GetOrganization.Invoke(new()
        {
            Search = "Terraform",
        });
    
        var engineers = Bitwarden.GetOrgGroup.Invoke(new()
        {
            OrganizationId = terraform.Apply(getOrganizationResult => getOrganizationResult.Id),
            FilterName = "Engineers",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.bitwarden.BitwardenFunctions;
    import com.pulumi.bitwarden.inputs.GetOrganizationArgs;
    import com.pulumi.bitwarden.inputs.GetOrgGroupArgs;
    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 terraform = BitwardenFunctions.getOrganization(GetOrganizationArgs.builder()
                .search("Terraform")
                .build());
    
            final var engineers = BitwardenFunctions.getOrgGroup(GetOrgGroupArgs.builder()
                .organizationId(terraform.applyValue(getOrganizationResult -> getOrganizationResult.id()))
                .filterName("Engineers")
                .build());
    
        }
    }
    
    variables:
      terraform:
        fn::invoke:
          function: bitwarden:getOrganization
          arguments:
            search: Terraform
      engineers:
        fn::invoke:
          function: bitwarden:getOrgGroup
          arguments:
            organizationId: ${terraform.id}
            filterName: Engineers
    

    Using getOrgGroup

    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 getOrgGroup(args: GetOrgGroupArgs, opts?: InvokeOptions): Promise<GetOrgGroupResult>
    function getOrgGroupOutput(args: GetOrgGroupOutputArgs, opts?: InvokeOptions): Output<GetOrgGroupResult>
    def get_org_group(filter_name: Optional[str] = None,
                      id: Optional[str] = None,
                      organization_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetOrgGroupResult
    def get_org_group_output(filter_name: Optional[pulumi.Input[str]] = None,
                      id: Optional[pulumi.Input[str]] = None,
                      organization_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetOrgGroupResult]
    func GetOrgGroup(ctx *Context, args *GetOrgGroupArgs, opts ...InvokeOption) (*GetOrgGroupResult, error)
    func GetOrgGroupOutput(ctx *Context, args *GetOrgGroupOutputArgs, opts ...InvokeOption) GetOrgGroupResultOutput

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

    public static class GetOrgGroup 
    {
        public static Task<GetOrgGroupResult> InvokeAsync(GetOrgGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetOrgGroupResult> Invoke(GetOrgGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOrgGroupResult> getOrgGroup(GetOrgGroupArgs args, InvokeOptions options)
    public static Output<GetOrgGroupResult> getOrgGroup(GetOrgGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: bitwarden:index/getOrgGroup:getOrgGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrganizationId string
    Identifier of the organization.
    FilterName string
    Filter search results by name.
    Id string
    Identifier.
    OrganizationId string
    Identifier of the organization.
    FilterName string
    Filter search results by name.
    Id string
    Identifier.
    organizationId String
    Identifier of the organization.
    filterName String
    Filter search results by name.
    id String
    Identifier.
    organizationId string
    Identifier of the organization.
    filterName string
    Filter search results by name.
    id string
    Identifier.
    organization_id str
    Identifier of the organization.
    filter_name str
    Filter search results by name.
    id str
    Identifier.
    organizationId String
    Identifier of the organization.
    filterName String
    Filter search results by name.
    id String
    Identifier.

    getOrgGroup Result

    The following output properties are available:

    Name string
    Name.
    OrganizationId string
    Identifier of the organization.
    FilterName string
    Filter search results by name.
    Id string
    Identifier.
    Name string
    Name.
    OrganizationId string
    Identifier of the organization.
    FilterName string
    Filter search results by name.
    Id string
    Identifier.
    name String
    Name.
    organizationId String
    Identifier of the organization.
    filterName String
    Filter search results by name.
    id String
    Identifier.
    name string
    Name.
    organizationId string
    Identifier of the organization.
    filterName string
    Filter search results by name.
    id string
    Identifier.
    name str
    Name.
    organization_id str
    Identifier of the organization.
    filter_name str
    Filter search results by name.
    id str
    Identifier.
    name String
    Name.
    organizationId String
    Identifier of the organization.
    filterName String
    Filter search results by name.
    id String
    Identifier.

    Package Details

    Repository
    bitwarden maxlaverse/terraform-provider-bitwarden
    License
    Notes
    This Pulumi package is based on the bitwarden Terraform Provider.
    bitwarden logo
    bitwarden 0.14.0 published on Tuesday, Jun 17, 2025 by maxlaverse