ad_group (Resource)

ad_group manages Group objects in an Active Directory tree.

Example Usage

variable name { default = "TestOU" }
variable path { default = "dc=yourdomain,dc=com" }
variable description { default = "some description" }
variable protected { default = false }

variable name { default = "test group" }
variable sam_account_name { default = "TESTGROUP" }
variable scope { default = "global" }
variable category { default = "security" }

resource "ad_ou" "o" {
  name        = var.name
  path        = var.path
  description = var.description
  protected   = var.protected
}


resource "ad_group" "g" {
  name             = var.name
  sam_account_name = var.sam_account_name
  scope            = var.scope
  category         = var.category
  container        = ad_ou.o.dn
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

$ terraform import ad_group 9CB8219C-31FF-4A85-A7A3-9BCBB6A41D02