Data Source: oci_identity_user_group_memberships

This data source provides the list of User Group Memberships in Oracle Cloud Infrastructure Identity service.

Lists the UserGroupMembership objects in your tenancy. You must specify your tenancy’s OCID as the value for the compartment ID (see Where to Get the Tenancy’s OCID and User’s OCID). You must also then filter the list in one of these ways:

Example Usage

data "oci_identity_user_group_memberships" "test_user_group_memberships" {
	#Required
	compartment_id = var.tenancy_ocid

	#Optional
	group_id = oci_identity_group.test_group.id
	user_id = oci_identity_user.test_user.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

UserGroupMembership Reference

The following attributes are exported: