1. Registry
  2. Packages
  3. Files.com
  4. API Docs
  5. GroupUser
Viewing docs for Files.com v0.1.1
published on Thursday, Aug 20, 2026 by jschady
filescom logo
Viewing docs for Files.com v0.1.1
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:

    GroupId int
    Group ID
    UserId int
    User ID
    Admin bool
    Is this user an administrator of this group?
    GroupId int
    Group ID
    UserId int
    User ID
    Admin bool
    Is this user an administrator of this group?
    group_id number
    Group ID
    user_id number
    User ID
    admin bool
    Is this user an administrator of this group?
    groupId Integer
    Group ID
    userId Integer
    User ID
    admin Boolean
    Is this user an administrator of this group?
    groupId number
    Group ID
    userId number
    User ID
    admin boolean
    Is this user an administrator of this group?
    group_id int
    Group ID
    user_id int
    User ID
    admin bool
    Is this user an administrator of this group?
    groupId Number
    Group ID
    userId Number
    User ID
    admin Boolean
    Is this user an administrator of this group?

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GroupUser resource produces the following output properties:

    GroupName string
    Group name
    Id string
    The provider-assigned unique ID for this managed resource.
    Username string
    Username of the user
    GroupName string
    Group name
    Id string
    The provider-assigned unique ID for this managed resource.
    Username string
    Username of the user
    group_name string
    Group name
    id string
    The provider-assigned unique ID for this managed resource.
    username string
    Username of the user
    groupName String
    Group name
    id String
    The provider-assigned unique ID for this managed resource.
    username String
    Username of the user
    groupName 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
    groupName String
    Group name
    id String
    The provider-assigned unique ID for this managed resource.
    username String
    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) -> GroupUser
    func 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.
    The following state arguments are supported:
    Admin bool
    Is this user an administrator of this group?
    GroupId int
    Group ID
    GroupName string
    Group name
    UserId int
    User ID
    Username string
    Username of the user
    Admin bool
    Is this user an administrator of this group?
    GroupId int
    Group ID
    GroupName string
    Group name
    UserId int
    User ID
    Username string
    Username of the user
    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 Boolean
    Is this user an administrator of this group?
    groupId Integer
    Group ID
    groupName String
    Group name
    userId Integer
    User ID
    username String
    Username of the user
    admin boolean
    Is this user an administrator of this group?
    groupId number
    Group ID
    groupName string
    Group name
    userId 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
    admin Boolean
    Is this user an administrator of this group?
    groupId Number
    Group ID
    groupName String
    Group name
    userId Number
    User ID
    username String
    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 filescom Terraform Provider.
    filescom logo
    Viewing docs for Files.com v0.1.1
    published on Thursday, Aug 20, 2026 by jschady

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial