Get the details of an Organizational Unit Active Directory object.
data "ad_ou" "g" {
dn = "OU=SomeOU,dc=yourdomain,dc=com"
}
output "ou_uuid" {
value = data.ad_ou.g.id
}
dn
(String, Deprecated) Distinguished Name of the OU object.id
(String) The ID of this resource.name
(String) Name of the OU object. If this is used then the path
attribute needs to be set as well.ou_id
(String) The OU's identifier. It can be the OU's GUID, SID, Distinguished Name, or SAM Account Name.path
(String) Path of the OU object. If this is used then the Name
attribute needs to be set as well.description
(String) The OU's description.protected
(String) The OU's protected status.