ad_group
manages Group objects in an Active Directory tree.
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
}
container
(String) A DN of a container object holding the group.name
(String) The name of the group.sam_account_name
(String) The pre-win2k name of the group.category
(String) The group's category. Can be one of distribution
or security
(case sensitive).description
(String) Description of the Group.id
(String) The ID of this resource.scope
(String) The group's scope. Can be one of global
, domainlocal
, or universal
(case sensitive).dn
(String) The distinguished name of the group object.sid
(String) The SID of the group object.Import is supported using the following syntax:
$ terraform import ad_group 9CB8219C-31FF-4A85-A7A3-9BCBB6A41D02