published on Thursday, Aug 20, 2026 by jschady
published on Thursday, Aug 20, 2026 by jschady
A GroupUser is a record about membership of a User within a Group.
Creating GroupUsers
GroupUsers can be created via the normal create action. When using the update action, if the
GroupUser record does not exist for the given user/group IDs it will be created.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as filescom from "pulumi-filescom";
const exampleGroupUser = new filescom.GroupUser("example_group_user", {
groupId: 1,
userId: 1,
admin: false,
});
import pulumi
import pulumi_filescom as filescom
example_group_user = filescom.GroupUser("example_group_user",
group_id=1,
user_id=1,
admin=False)
package main
import (
"github.com/jschady/pulumi-filescom/sdk/go/filescom"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := filescom.NewGroupUser(ctx, "example_group_user", &filescom.GroupUserArgs{
GroupId: pulumi.Int(1),
UserId: pulumi.Int(1),
Admin: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Filescom = Jschady.Filescom;
return await Deployment.RunAsync(() =>
{
var exampleGroupUser = new Filescom.GroupUser("example_group_user", new()
{
GroupId = 1,
UserId = 1,
Admin = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.filescom.GroupUser;
import com.pulumi.filescom.GroupUserArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
var exampleGroupUser = new GroupUser("exampleGroupUser", GroupUserArgs.builder()
.groupId(1)
.userId(1)
.admin(false)
.build());
}
}
resources:
exampleGroupUser:
type: filescom:GroupUser
name: example_group_user
properties:
groupId: 1
userId: 1
admin: false
pulumi {
required_providers {
filescom = {
source = "pulumi/filescom"
}
}
}
resource "filescom_groupuser" "example_group_user" {
group_id = 1
user_id = 1
admin = false
}
Create GroupUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GroupUser(name: string, args: GroupUserArgs, opts?: CustomResourceOptions);@overload
def GroupUser(resource_name: str,
args: GroupUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GroupUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_id: Optional[int] = None,
user_id: Optional[int] = None,
admin: Optional[bool] = None)func NewGroupUser(ctx *Context, name string, args GroupUserArgs, opts ...ResourceOption) (*GroupUser, error)public GroupUser(string name, GroupUserArgs args, CustomResourceOptions? opts = null)
public GroupUser(String name, GroupUserArgs args)
public GroupUser(String name, GroupUserArgs args, CustomResourceOptions options)
type: filescom:GroupUser
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "filescom_group_user" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args GroupUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GroupUserArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GroupUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GroupUserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var groupUserResource = new Filescom.GroupUser("groupUserResource", new()
{
GroupId = 0,
UserId = 0,
Admin = false,
});
example, err := filescom.NewGroupUser(ctx, "groupUserResource", &filescom.GroupUserArgs{
GroupId: pulumi.Int(0),
UserId: pulumi.Int(0),
Admin: pulumi.Bool(false),
})
resource "filescom_group_user" "groupUserResource" {
lifecycle {
create_before_destroy = true
}
group_id = 0
user_id = 0
admin = false
}
var groupUserResource = new GroupUser("groupUserResource", GroupUserArgs.builder()
.groupId(0)
.userId(0)
.admin(false)
.build());
group_user_resource = filescom.GroupUser("groupUserResource",
group_id=0,
user_id=0,
admin=False)
const groupUserResource = new filescom.GroupUser("groupUserResource", {
groupId: 0,
userId: 0,
admin: false,
});
type: filescom:GroupUser
properties:
admin: false
groupId: 0
userId: 0
GroupUser Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The GroupUser resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the GroupUser resource produces the following output properties:
- group_
name string - Group name
- id string
- The provider-assigned unique ID for this managed resource.
- username string
- Username of the user
- group_
name str - Group name
- id str
- The provider-assigned unique ID for this managed resource.
- username str
- Username of the user
Look up Existing GroupUser Resource
Get an existing GroupUser resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: GroupUserState, opts?: CustomResourceOptions): GroupUser@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
admin: Optional[bool] = None,
group_id: Optional[int] = None,
group_name: Optional[str] = None,
user_id: Optional[int] = None,
username: Optional[str] = None) -> GroupUserfunc GetGroupUser(ctx *Context, name string, id IDInput, state *GroupUserState, opts ...ResourceOption) (*GroupUser, error)public static GroupUser Get(string name, Input<string> id, GroupUserState? state, CustomResourceOptions? opts = null)public static GroupUser get(String name, Output<String> id, GroupUserState state, CustomResourceOptions options)resources: _: type: filescom:GroupUser get: id: ${id}import {
to = filescom_group_user.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- admin bool
- Is this user an administrator of this group?
- group_
id number - Group ID
- group_
name string - Group name
- user_
id number - User ID
- username string
- Username of the user
- admin bool
- Is this user an administrator of this group?
- group_
id int - Group ID
- group_
name str - Group name
- user_
id int - User ID
- username str
- Username of the user
Import
The pulumi import command can be used, for example:
Group Users can be imported by specifying the groupId and user_id.
$ pulumi import filescom:index/groupUser:GroupUser example_group_user 1,1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- filescom jschady/pulumi-filescom
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
filescomTerraform Provider.
published on Thursday, Aug 20, 2026 by jschady