oci_identity_domains_group

This resource provides the Group resource in Oracle Cloud Infrastructure Identity Domains service.

Create a group.

Example Usage

resource "oci_identity_domains_group" "test_group" {
	#Required
	display_name = var.group_display_name
	idcs_endpoint = data.oci_identity_domain.test_domain.url
	schemas = ["urn:ietf:params:scim:schemas:core:2.0:Group"]

	#Optional
	attribute_sets = []
	attributes = ""
	authorization = var.group_authorization
	external_id = "externalId"
	id = var.group_id
	members {
		#Required
		type = var.group_members_type
		value = var.group_members_value

		#Optional
		ocid = var.group_members_ocid
	}
	non_unique_display_name = var.group_non_unique_display_name
	ocid = var.group_ocid
	resource_type_schema_version = var.group_resource_type_schema_version
	tags {
		#Required
		key = var.group_tags_key
		value = var.group_tags_value
	}
	urnietfparamsscimschemasoracleidcsextension_oci_tags {

		#Optional
		defined_tags {
			#Required
			key = var.group_urnietfparamsscimschemasoracleidcsextension_oci_tags_defined_tags_key
			namespace = var.group_urnietfparamsscimschemasoracleidcsextension_oci_tags_defined_tags_namespace
			value = var.group_urnietfparamsscimschemasoracleidcsextension_oci_tags_defined_tags_value
		}
		freeform_tags {
			#Required
			key = var.group_urnietfparamsscimschemasoracleidcsextension_oci_tags_freeform_tags_key
			value = var.group_urnietfparamsscimschemasoracleidcsextension_oci_tags_freeform_tags_value
		}
	}
	urnietfparamsscimschemasoracleidcsextensiondynamic_group {

		#Optional
		membership_rule = var.group_urnietfparamsscimschemasoracleidcsextensiondynamic_group_membership_rule
		membership_type = var.group_urnietfparamsscimschemasoracleidcsextensiondynamic_group_membership_type
	}
	urnietfparamsscimschemasoracleidcsextensiongroup_group {

		#Optional
		creation_mechanism = var.group_urnietfparamsscimschemasoracleidcsextensiongroup_group_creation_mechanism
		description = var.group_urnietfparamsscimschemasoracleidcsextensiongroup_group_description
		owners {
			#Required
			type = var.group_urnietfparamsscimschemasoracleidcsextensiongroup_group_owners_type
			value = var.group_urnietfparamsscimschemasoracleidcsextensiongroup_group_owners_value
		}
	}
	urnietfparamsscimschemasoracleidcsextensionposix_group {

		#Optional
		gid_number = var.group_urnietfparamsscimschemasoracleidcsextensionposix_group_gid_number
	}
	urnietfparamsscimschemasoracleidcsextensionrequestable_group {

		#Optional
		requestable = var.group_urnietfparamsscimschemasoracleidcsextensionrequestable_group_requestable
	}
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Group * update - (Defaults to 20 minutes), when updating the Group * delete - (Defaults to 20 minutes), when destroying the Group

Import

Groups can be imported using the id, e.g.

$ terraform import oci_identity_domains_group.test_group "idcsEndpoint/{idcsEndpoint}/groups/{groupId}"