OrgUnit resource manages Google Workspace OrgUnits. Org Unit resides under the https://www.googleapis.com/auth/admin.directory.orgunit
client scope.
resource "googleworkspace_org_unit" "org" {
name = "dunder-mifflin"
description = "paper company"
parent_org_unit_path = "/"
}
name
(String) The organizational unit's path name. For example, an organizational unit's name within the /corp/support/sales_support parent path is sales_support.block_inheritance
(Boolean) Defaults to false
. Determines if a sub-organizational unit can inherit the settings of the parent organization. False means a sub-organizational unit inherits the settings of the nearest parent organizational unit. For more information on inheritance and users in an organization structure, see the administration help center.description
(String) Description of the organizational unit.parent_org_unit_id
(String) The unique ID of the parent organizational unit.parent_org_unit_path
(String) The organizational unit's parent path. For example, /corp/sales is the parent path for /corp/sales/sales_support organizational unit.etag
(String) ETag of the resource.id
(String) The ID of this resource.org_unit_id
(String) The unique ID of the organizational unit.org_unit_path
(String) The full path to the organizational unit. The orgUnitPath is a derived property. When listed, it is derived from parentOrgunitPath and organizational unit's name. For example, for an organizational unit named 'apps' under parent organization '/engineering', the orgUnitPath is '/engineering/apps'. In order to edit an orgUnitPath, either update the name of the organization or the parentOrgunitPath. A user's organizational unit determines which Google Workspace services the user has access to. If the user is moved to a new organization, the user's access changes. For more information about organization structures, see the administration help center. For more information about moving a user to a different organization, see chromeosdevices.update a user.Import is supported using the following syntax:
terraform import googleworkspace_org_unit.org "id:01ab2c3d4efg56h"