Share Groups

A ShareGroup is a way for you to store and name groups of email contacts to be used for sending share and inbox invitations.

Resource Schema

Required

PropertyDescription
name
String
Name of the share group
members
Dynamic
A list of share group members

Optional

PropertyDescription
notes
String
Additional notes of the share group
user_id
Int64
Owner User ID

Read Only

PropertyDescription
id
Int64
Share Group ID

Example Resource

resource "files_share_group" "example_share_group" {
  user_id = 1
  notes   = "This group is defined for testing purposes"
  name    = "Test group 1"
  members = [
    {
      name    = "John Doe"
      company = "Acme Ltd"
      email   = "johndoe@gmail.com"
    }
  ]
}

Resource Import

This Resource supports importing using the following syntax:

Example Import Command

# Share Groups can be imported by specifying the id.
terraform import files_share_group.example_share_group 1

Data Source Schema

Required

PropertyDescription
id
Int64
Share Group ID

Read Only

PropertyDescription
name
String
Name of the share group
notes
String
Additional notes of the share group
user_id
Int64
Owner User ID
members
Dynamic
A list of share group members

Example Data Source

data "files_share_group" "example_share_group" {
  id = 1
}