oci_identity_user_group_membership

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

Adds the specified user to the specified group and returns a UserGroupMembership object with its own OCID.

Example Usage

resource "oci_identity_user_group_membership" "test_user_group_membership" {
	#Required
	group_id = oci_identity_group.test_group.id
	user_id = oci_identity_user.test_user.id
}

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 User Group Membership * update - (Defaults to 20 minutes), when updating the User Group Membership * delete - (Defaults to 20 minutes), when destroying the User Group Membership

Import

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

$ terraform import oci_identity_user_group_membership.test_user_group_membership "id"