Get the details of an Active Directory Group object.
data "ad_group" "g" {
group_id = "DC3E5929-71C0-4232-9C32-9C7AFAABF0BB"
}
output "groupname" {
value = data.ad_group.g.name
}
data "ad_group" "g2" {
group_id = "some_group_sam_account_name"
}
output "g2_guid" {
value = data.ad_group.g2.id
}
output "g2_description" {
value = data.ad_group.g2.description
}
group_id
(String) The group's identifier. It can be the group's GUID, SID, Distinguished Name, or SAM Account Name.id
(String) The ID of this resource.category
(String) The Group's category.container
(String) The Group's container object.description
(String) Description of the Group object.display_name
(String) The display name of the Group object.dn
(String) The distinguished name of the group object.name
(String) The name of the Group object.sam_account_name
(String) The SAM account name of the Group object.scope
(String) The Group's scope.sid
(String) The SID of the group object.