Data Source: oci_data_safe_user_assessment_profiles

This data source provides the list of User Assessment Profiles in Oracle Cloud Infrastructure Data Safe service.

Gets a list of user profiles containing the profile details along with the target id and user counts.

The ListProfiles operation returns only the profiles belonging to a certain target. If compartment type user assessment id is provided, then profile information for all the targets belonging to the pertaining compartment is returned. The list does not include any subcompartments of the compartment under consideration.

The parameter ‘accessLevel’ specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn’t have access to even one of the child compartments. This is valid only when ‘compartmentIdInSubtree’ is set to ‘true’.

The parameter ‘compartmentIdInSubtree’ applies when you perform ListUserProfiles on the ‘compartmentId’ belonging to the assessmentId passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter ‘compartmentIdInSubtree’ to true and ‘accessLevel’ to ACCESSIBLE.

Example Usage

data "oci_data_safe_user_assessment_profiles" "test_user_assessment_profiles" {
  #Required
  compartment_id = var.compartment_id
  user_assessment_id = oci_data_safe_user_assessment.test_user_assessment.id

  #Optional
  access_level = var.user_assessment_profile_access_level
  compartment_id_in_subtree = var.user_assessment_profile_compartment_id_in_subtree
  failed_login_attempts_greater_than_or_equal = var.user_assessment_profile_failed_login_attempts_greater_than_or_equal
  failed_login_attempts_less_than = var.user_assessment_profile_failed_login_attempts_less_than
  inactive_account_time_greater_than_or_equal = var.user_assessment_profile_inactive_account_time_greater_than_or_equal
  inactive_account_time_less_than = var.user_assessment_profile_inactive_account_time_less_than
  is_user_created = var.user_assessment_profile_is_user_created
  password_lock_time_greater_than_or_equal = var.user_assessment_profile_password_lock_time_greater_than_or_equal
  password_lock_time_less_than = var.user_assessment_profile_password_lock_time_less_than
  password_verification_function = var.user_assessment_profile_password_verification_function
  profile_name = oci_optimizer_profile.test_profile.name
  sessions_per_user_greater_than_or_equal = var.user_assessment_profile_sessions_per_user_greater_than_or_equal
  sessions_per_user_less_than = var.user_assessment_profile_sessions_per_user_less_than
  target_id = oci_cloud_guard_target.test_target.id
  user_count_greater_than_or_equal = var.user_assessment_profile_user_count_greater_than_or_equal
  user_count_less_than = var.user_assessment_profile_user_count_less_than
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

UserAssessmentProfile Reference

The following attributes are exported: