1. Packages
  2. Fivetran Provider
  3. API Docs
  4. getUserGroupMemberships
fivetran 1.6.0 published on Tuesday, Mar 25, 2025 by fivetran

fivetran.getUserGroupMemberships

Explore with Pulumi AI

fivetran logo
fivetran 1.6.0 published on Tuesday, Mar 25, 2025 by fivetran

    This data source returns a list of group memberships for user.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fivetran from "@pulumi/fivetran";
    
    const teamGroupMemberships = fivetran.getUserGroupMemberships({
        userId: "user_id",
    });
    
    import pulumi
    import pulumi_fivetran as fivetran
    
    team_group_memberships = fivetran.get_user_group_memberships(user_id="user_id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fivetran/fivetran"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fivetran.GetUserGroupMemberships(ctx, &fivetran.GetUserGroupMembershipsArgs{
    			UserId: "user_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fivetran = Pulumi.Fivetran;
    
    return await Deployment.RunAsync(() => 
    {
        var teamGroupMemberships = Fivetran.GetUserGroupMemberships.Invoke(new()
        {
            UserId = "user_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fivetran.FivetranFunctions;
    import com.pulumi.fivetran.inputs.GetUserGroupMembershipsArgs;
    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 teamGroupMemberships = FivetranFunctions.getUserGroupMemberships(GetUserGroupMembershipsArgs.builder()
                .userId("user_id")
                .build());
    
        }
    }
    
    variables:
      teamGroupMemberships:
        fn::invoke:
          function: fivetran:getUserGroupMemberships
          arguments:
            userId: user_id
    

    Using getUserGroupMemberships

    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 getUserGroupMemberships(args: GetUserGroupMembershipsArgs, opts?: InvokeOptions): Promise<GetUserGroupMembershipsResult>
    function getUserGroupMembershipsOutput(args: GetUserGroupMembershipsOutputArgs, opts?: InvokeOptions): Output<GetUserGroupMembershipsResult>
    def get_user_group_memberships(groups: Optional[Sequence[GetUserGroupMembershipsGroup]] = None,
                                   user_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetUserGroupMembershipsResult
    def get_user_group_memberships_output(groups: Optional[pulumi.Input[Sequence[pulumi.Input[GetUserGroupMembershipsGroupArgs]]]] = None,
                                   user_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetUserGroupMembershipsResult]
    func GetUserGroupMemberships(ctx *Context, args *GetUserGroupMembershipsArgs, opts ...InvokeOption) (*GetUserGroupMembershipsResult, error)
    func GetUserGroupMembershipsOutput(ctx *Context, args *GetUserGroupMembershipsOutputArgs, opts ...InvokeOption) GetUserGroupMembershipsResultOutput

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

    public static class GetUserGroupMemberships 
    {
        public static Task<GetUserGroupMembershipsResult> InvokeAsync(GetUserGroupMembershipsArgs args, InvokeOptions? opts = null)
        public static Output<GetUserGroupMembershipsResult> Invoke(GetUserGroupMembershipsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUserGroupMembershipsResult> getUserGroupMemberships(GetUserGroupMembershipsArgs args, InvokeOptions options)
    public static Output<GetUserGroupMembershipsResult> getUserGroupMemberships(GetUserGroupMembershipsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: fivetran:index/getUserGroupMemberships:getUserGroupMemberships
      arguments:
        # arguments dictionary

    The following arguments are supported:

    UserId string
    The unique identifier for the user within your account.
    Groups List<GetUserGroupMembershipsGroup>
    UserId string
    The unique identifier for the user within your account.
    Groups []GetUserGroupMembershipsGroup
    userId String
    The unique identifier for the user within your account.
    groups List<GetUserGroupMembershipsGroup>
    userId string
    The unique identifier for the user within your account.
    groups GetUserGroupMembershipsGroup[]
    user_id str
    The unique identifier for the user within your account.
    groups Sequence[GetUserGroupMembershipsGroup]
    userId String
    The unique identifier for the user within your account.
    groups List<Property Map>

    getUserGroupMemberships Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    UserId string
    The unique identifier for the user within your account.
    Groups List<GetUserGroupMembershipsGroup>
    Id string
    The provider-assigned unique ID for this managed resource.
    UserId string
    The unique identifier for the user within your account.
    Groups []GetUserGroupMembershipsGroup
    id String
    The provider-assigned unique ID for this managed resource.
    userId String
    The unique identifier for the user within your account.
    groups List<GetUserGroupMembershipsGroup>
    id string
    The provider-assigned unique ID for this managed resource.
    userId string
    The unique identifier for the user within your account.
    groups GetUserGroupMembershipsGroup[]
    id str
    The provider-assigned unique ID for this managed resource.
    user_id str
    The unique identifier for the user within your account.
    groups Sequence[GetUserGroupMembershipsGroup]
    id String
    The provider-assigned unique ID for this managed resource.
    userId String
    The unique identifier for the user within your account.
    groups List<Property Map>

    Supporting Types

    GetUserGroupMembershipsGroup

    CreatedAt string
    The date and time the membership was created
    GroupId string
    The group unique identifier
    Role string
    The user's role that links the user and the group
    CreatedAt string
    The date and time the membership was created
    GroupId string
    The group unique identifier
    Role string
    The user's role that links the user and the group
    createdAt String
    The date and time the membership was created
    groupId String
    The group unique identifier
    role String
    The user's role that links the user and the group
    createdAt string
    The date and time the membership was created
    groupId string
    The group unique identifier
    role string
    The user's role that links the user and the group
    created_at str
    The date and time the membership was created
    group_id str
    The group unique identifier
    role str
    The user's role that links the user and the group
    createdAt String
    The date and time the membership was created
    groupId String
    The group unique identifier
    role String
    The user's role that links the user and the group

    Package Details

    Repository
    fivetran fivetran/terraform-provider-fivetran
    License
    Notes
    This Pulumi package is based on the fivetran Terraform Provider.
    fivetran logo
    fivetran 1.6.0 published on Tuesday, Mar 25, 2025 by fivetran