FusionAuth v6.0.2 published on Sunday, Feb 9, 2025 by Theo Gravity
fusionauth.getUserGroupMembership
Explore with Pulumi AI
# User Group Membership Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fusionauth from "@pulumi/fusionauth";
const this = fusionauth.getUserGroupMembership({
groupId: fusionauth_group["this"].id,
userId: fusionauth_user["this"].id,
});
import pulumi
import pulumi_fusionauth as fusionauth
this = fusionauth.get_user_group_membership(group_id=fusionauth_group["this"]["id"],
user_id=fusionauth_user["this"]["id"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/theogravity/pulumi-fusionauth/sdk/go/fusionauth"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fusionauth.GetUserGroupMembership(ctx, &fusionauth.GetUserGroupMembershipArgs{
GroupId: fusionauth_group.This.Id,
UserId: fusionauth_user.This.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fusionauth = Pulumi.Fusionauth;
return await Deployment.RunAsync(() =>
{
var @this = Fusionauth.GetUserGroupMembership.Invoke(new()
{
GroupId = fusionauth_group.This.Id,
UserId = fusionauth_user.This.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fusionauth.FusionauthFunctions;
import com.pulumi.fusionauth.inputs.GetUserGroupMembershipArgs;
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 this = FusionauthFunctions.getUserGroupMembership(GetUserGroupMembershipArgs.builder()
.groupId(fusionauth_group.this().id())
.userId(fusionauth_user.this().id())
.build());
}
}
variables:
this:
fn::invoke:
function: fusionauth:getUserGroupMembership
arguments:
groupId: ${fusionauth_group.this.id}
userId: ${fusionauth_user.this.id}
Using getUserGroupMembership
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 getUserGroupMembership(args: GetUserGroupMembershipArgs, opts?: InvokeOptions): Promise<GetUserGroupMembershipResult>
function getUserGroupMembershipOutput(args: GetUserGroupMembershipOutputArgs, opts?: InvokeOptions): Output<GetUserGroupMembershipResult>
def get_user_group_membership(group_id: Optional[str] = None,
user_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserGroupMembershipResult
def get_user_group_membership_output(group_id: Optional[pulumi.Input[str]] = None,
user_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserGroupMembershipResult]
func GetUserGroupMembership(ctx *Context, args *GetUserGroupMembershipArgs, opts ...InvokeOption) (*GetUserGroupMembershipResult, error)
func GetUserGroupMembershipOutput(ctx *Context, args *GetUserGroupMembershipOutputArgs, opts ...InvokeOption) GetUserGroupMembershipResultOutput
> Note: This function is named GetUserGroupMembership
in the Go SDK.
public static class GetUserGroupMembership
{
public static Task<GetUserGroupMembershipResult> InvokeAsync(GetUserGroupMembershipArgs args, InvokeOptions? opts = null)
public static Output<GetUserGroupMembershipResult> Invoke(GetUserGroupMembershipInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserGroupMembershipResult> getUserGroupMembership(GetUserGroupMembershipArgs args, InvokeOptions options)
public static Output<GetUserGroupMembershipResult> getUserGroupMembership(GetUserGroupMembershipArgs args, InvokeOptions options)
fn::invoke:
function: fusionauth:index/getUserGroupMembership:getUserGroupMembership
arguments:
# arguments dictionary
The following arguments are supported:
getUserGroupMembership Result
The following output properties are available:
- Data Dictionary<string, string>
- (Optional) An object that can hold any information about the User for this membership that should be persisted.
- Group
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Membership
Id string - (Optional) The Id of the User Group Membership. If not provided, a random UUID will be generated.
- User
Id string
- Data map[string]string
- (Optional) An object that can hold any information about the User for this membership that should be persisted.
- Group
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Membership
Id string - (Optional) The Id of the User Group Membership. If not provided, a random UUID will be generated.
- User
Id string
- data Map<String,String>
- (Optional) An object that can hold any information about the User for this membership that should be persisted.
- group
Id String - id String
- The provider-assigned unique ID for this managed resource.
- membership
Id String - (Optional) The Id of the User Group Membership. If not provided, a random UUID will be generated.
- user
Id String
- data {[key: string]: string}
- (Optional) An object that can hold any information about the User for this membership that should be persisted.
- group
Id string - id string
- The provider-assigned unique ID for this managed resource.
- membership
Id string - (Optional) The Id of the User Group Membership. If not provided, a random UUID will be generated.
- user
Id string
- data Mapping[str, str]
- (Optional) An object that can hold any information about the User for this membership that should be persisted.
- group_
id str - id str
- The provider-assigned unique ID for this managed resource.
- membership_
id str - (Optional) The Id of the User Group Membership. If not provided, a random UUID will be generated.
- user_
id str
- data Map<String>
- (Optional) An object that can hold any information about the User for this membership that should be persisted.
- group
Id String - id String
- The provider-assigned unique ID for this managed resource.
- membership
Id String - (Optional) The Id of the User Group Membership. If not provided, a random UUID will be generated.
- user
Id String
Package Details
- Repository
- fusionauth theogravity/pulumi-fusionauth
- License
- MIT
- Notes
- This Pulumi package is based on the
fusionauth
Terraform Provider.