1. Registry
  2. Packages
  3. Bitwarden Provider
  4. API Docs
  5. getOrgCollection
Viewing docs for bitwarden 0.21.0
published on Thursday, Oct 1, 2026 by maxlaverse
bitwarden
Viewing docs for bitwarden 0.21.0
published on Thursday, Oct 1, 2026 by maxlaverse

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bitwarden from "@pulumi/bitwarden";
    
    const terraform = bitwarden.getOrganization({
        search: "Terraform",
    });
    const engineering = terraform.then(terraform => bitwarden.getOrgCollection({
        search: "Engineering",
        organizationId: terraform.id,
    }));
    // Example of usage of the data source:
    const administrativeUser = new bitwarden.ItemLogin("administrative_user", {
        name: "Service Administrator",
        username: "admin",
        password: "<sensitive>",
        organizationId: terraform.then(terraform => terraform.id),
        collectionIds: [terraformBitwardenOrgCollection.id],
    });
    const emails = [
        "regular-user-1@example.com",
        "regular-user-2@example.com",
    ];
    const regularUsers = (new Array(emails.length)).map((_, i) => i).map(__index => (bitwarden.getOrgMember({
        organizationId: _arg0_.id,
        email: emails[__index],
    })));
    const myCollection = new bitwarden.OrgCollection("my_collection", {
        members: [{
            id: john.id,
        }],
        organizationId: terraform.then(terraform => terraform.id),
        name: "my-collection",
    });
    
    import pulumi
    import pulumi_bitwarden as bitwarden
    
    terraform = bitwarden.get_organization(search="Terraform")
    engineering = bitwarden.get_org_collection(search="Engineering",
        organization_id=terraform.id)
    # Example of usage of the data source:
    administrative_user = bitwarden.ItemLogin("administrative_user",
        name="Service Administrator",
        username="admin",
        password="<sensitive>",
        organization_id=terraform.id,
        collection_ids=[terraform_bitwarden_org_collection["id"]])
    emails = [
        "regular-user-1@example.com",
        "regular-user-2@example.com",
    ]
    regular_users = [bitwarden.get_org_member(organization_id=terraform.id,
        email=emails[__index]) for __index in range(len(emails))]
    my_collection = bitwarden.OrgCollection("my_collection",
        members=[{
            "id": john["id"],
        }],
        organization_id=terraform.id,
        name="my-collection")
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    

    Using getOrgCollection

    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 getOrgCollection(args: GetOrgCollectionArgs, opts?: InvokeOptions): Promise<GetOrgCollectionResult>
    function getOrgCollectionOutput(args: GetOrgCollectionOutputArgs, opts?: InvokeOutputOptions): Output<GetOrgCollectionResult>
    def get_org_collection(id: Optional[str] = None,
                           organization_id: Optional[str] = None,
                           search: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetOrgCollectionResult
    def get_org_collection_output(id: pulumi.Input[Optional[str]] = None,
                           organization_id: pulumi.Input[Optional[str]] = None,
                           search: pulumi.Input[Optional[str]] = None,
                           opts: Optional[InvokeOutputOptions] = None) -> Output[GetOrgCollectionResult]
    func LookupOrgCollection(ctx *Context, args *LookupOrgCollectionArgs, opts ...InvokeOption) (*LookupOrgCollectionResult, error)
    func LookupOrgCollectionOutput(ctx *Context, args *LookupOrgCollectionOutputArgs, opts ...InvokeOption) LookupOrgCollectionResultOutput

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

    public static class GetOrgCollection 
    {
        public static Task<GetOrgCollectionResult> InvokeAsync(GetOrgCollectionArgs args, InvokeOptions? opts = null)
        public static Output<GetOrgCollectionResult> Invoke(GetOrgCollectionInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetOrgCollectionResult> Invoke(GetOrgCollectionInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetOrgCollectionResult> getOrgCollection(GetOrgCollectionArgs args, InvokeOptions options)
    public static Output<GetOrgCollectionResult> getOrgCollection(GetOrgCollectionArgs args, InvokeOptions options)
    public static Output<GetOrgCollectionResult> getOrgCollection(GetOrgCollectionArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: bitwarden:index/getOrgCollection:getOrgCollection
      arguments:
        # arguments dictionary
    data "bitwarden_get_org_collection" "name" {
        # arguments
    }

    The following arguments are supported:

    OrganizationId string
    Identifier of the organization.
    Id string
    Identifier.
    Search string
    Search items matching the search string.
    OrganizationId string
    Identifier of the organization.
    Id string
    Identifier.
    Search string
    Search items matching the search string.
    organization_id string
    Identifier of the organization.
    id string
    Identifier.
    search string
    Search items matching the search string.
    organizationId String
    Identifier of the organization.
    id String
    Identifier.
    search String
    Search items matching the search string.
    organizationId string
    Identifier of the organization.
    id string
    Identifier.
    search string
    Search items matching the search string.
    organization_id str
    Identifier of the organization.
    id str
    Identifier.
    search str
    Search items matching the search string.
    organizationId String
    Identifier of the organization.
    id String
    Identifier.
    search String
    Search items matching the search string.

    getOrgCollection Result

    The following output properties are available:

    Id string
    Identifier.
    MemberGroups List<GetOrgCollectionMemberGroup>
    [Experimental] Member Groups of a collection.
    Members List<GetOrgCollectionMember>
    [Experimental] Member (Users) of a collection.
    Name string
    Name.
    OrganizationId string
    Identifier of the organization.
    Search string
    Search items matching the search string.
    Id string
    Identifier.
    MemberGroups []GetOrgCollectionMemberGroup
    [Experimental] Member Groups of a collection.
    Members []GetOrgCollectionMember
    [Experimental] Member (Users) of a collection.
    Name string
    Name.
    OrganizationId string
    Identifier of the organization.
    Search string
    Search items matching the search string.
    id string
    Identifier.
    member_groups list(object)
    [Experimental] Member Groups of a collection.
    members list(object)
    [Experimental] Member (Users) of a collection.
    name string
    Name.
    organization_id string
    Identifier of the organization.
    search string
    Search items matching the search string.
    id String
    Identifier.
    memberGroups List<GetOrgCollectionMemberGroup>
    [Experimental] Member Groups of a collection.
    members List<GetOrgCollectionMember>
    [Experimental] Member (Users) of a collection.
    name String
    Name.
    organizationId String
    Identifier of the organization.
    search String
    Search items matching the search string.
    id string
    Identifier.
    memberGroups GetOrgCollectionMemberGroup[]
    [Experimental] Member Groups of a collection.
    members GetOrgCollectionMember[]
    [Experimental] Member (Users) of a collection.
    name string
    Name.
    organizationId string
    Identifier of the organization.
    search string
    Search items matching the search string.
    id str
    Identifier.
    member_groups Sequence[GetOrgCollectionMemberGroup]
    [Experimental] Member Groups of a collection.
    members Sequence[GetOrgCollectionMember]
    [Experimental] Member (Users) of a collection.
    name str
    Name.
    organization_id str
    Identifier of the organization.
    search str
    Search items matching the search string.
    id String
    Identifier.
    memberGroups List<Property Map>
    [Experimental] Member Groups of a collection.
    members List<Property Map>
    [Experimental] Member (Users) of a collection.
    name String
    Name.
    organizationId String
    Identifier of the organization.
    search String
    Search items matching the search string.

    Supporting Types

    GetOrgCollectionMember

    HidePasswords bool
    [Experimental] Hide passwords.
    Id string
    [Experimental] Unique Identifier (UUID) of the user or group member.
    Manage bool
    [Experimental] Can manage the collection.
    ReadOnly bool
    [Experimental] Read/Write permissions.
    HidePasswords bool
    [Experimental] Hide passwords.
    Id string
    [Experimental] Unique Identifier (UUID) of the user or group member.
    Manage bool
    [Experimental] Can manage the collection.
    ReadOnly bool
    [Experimental] Read/Write permissions.
    hide_passwords bool
    [Experimental] Hide passwords.
    id string
    [Experimental] Unique Identifier (UUID) of the user or group member.
    manage bool
    [Experimental] Can manage the collection.
    read_only bool
    [Experimental] Read/Write permissions.
    hidePasswords Boolean
    [Experimental] Hide passwords.
    id String
    [Experimental] Unique Identifier (UUID) of the user or group member.
    manage Boolean
    [Experimental] Can manage the collection.
    readOnly Boolean
    [Experimental] Read/Write permissions.
    hidePasswords boolean
    [Experimental] Hide passwords.
    id string
    [Experimental] Unique Identifier (UUID) of the user or group member.
    manage boolean
    [Experimental] Can manage the collection.
    readOnly boolean
    [Experimental] Read/Write permissions.
    hide_passwords bool
    [Experimental] Hide passwords.
    id str
    [Experimental] Unique Identifier (UUID) of the user or group member.
    manage bool
    [Experimental] Can manage the collection.
    read_only bool
    [Experimental] Read/Write permissions.
    hidePasswords Boolean
    [Experimental] Hide passwords.
    id String
    [Experimental] Unique Identifier (UUID) of the user or group member.
    manage Boolean
    [Experimental] Can manage the collection.
    readOnly Boolean
    [Experimental] Read/Write permissions.

    GetOrgCollectionMemberGroup

    HidePasswords bool
    [Experimental] Hide passwords.
    Id string
    [Experimental] Unique Identifier (UUID) of the user or group member.
    Manage bool
    [Experimental] Can manage the collection.
    ReadOnly bool
    [Experimental] Read/Write permissions.
    HidePasswords bool
    [Experimental] Hide passwords.
    Id string
    [Experimental] Unique Identifier (UUID) of the user or group member.
    Manage bool
    [Experimental] Can manage the collection.
    ReadOnly bool
    [Experimental] Read/Write permissions.
    hide_passwords bool
    [Experimental] Hide passwords.
    id string
    [Experimental] Unique Identifier (UUID) of the user or group member.
    manage bool
    [Experimental] Can manage the collection.
    read_only bool
    [Experimental] Read/Write permissions.
    hidePasswords Boolean
    [Experimental] Hide passwords.
    id String
    [Experimental] Unique Identifier (UUID) of the user or group member.
    manage Boolean
    [Experimental] Can manage the collection.
    readOnly Boolean
    [Experimental] Read/Write permissions.
    hidePasswords boolean
    [Experimental] Hide passwords.
    id string
    [Experimental] Unique Identifier (UUID) of the user or group member.
    manage boolean
    [Experimental] Can manage the collection.
    readOnly boolean
    [Experimental] Read/Write permissions.
    hide_passwords bool
    [Experimental] Hide passwords.
    id str
    [Experimental] Unique Identifier (UUID) of the user or group member.
    manage bool
    [Experimental] Can manage the collection.
    read_only bool
    [Experimental] Read/Write permissions.
    hidePasswords Boolean
    [Experimental] Hide passwords.
    id String
    [Experimental] Unique Identifier (UUID) of the user or group member.
    manage Boolean
    [Experimental] Can manage the collection.
    readOnly Boolean
    [Experimental] Read/Write permissions.

    Package Details

    Repository
    bitwarden maxlaverse/terraform-provider-bitwarden
    License
    Notes
    This Pulumi package is based on the bitwarden Terraform Provider.
    bitwarden
    Viewing docs for bitwarden 0.21.0
    published on Thursday, Oct 1, 2026 by maxlaverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial