Data Source: oci_data_safe_list_user_grants

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

Gets a list of grants for a particular user in the specified user assessment. A user grant contains details such as the privilege name, type, category, and depth level. The depth level indicates how deep in the hierarchy of roles granted to roles a privilege grant is. The userKey in this operation is a system-generated identifier. Perform the operation ListUsers to get the userKey for a particular user.

Example Usage

data "oci_data_safe_list_user_grants" "test_list_user_grants" {
	#Required
	user_assessment_id = oci_data_safe_user_assessment.test_user_assessment.id
	user_key = var.list_user_grant_user_key

	#Optional
	depth_level = var.list_user_grant_depth_level
	depth_level_greater_than_or_equal_to = var.list_user_grant_depth_level_greater_than_or_equal_to
	depth_level_less_than = var.list_user_grant_depth_level_less_than
	grant_key = var.list_user_grant_grant_key
	grant_name = var.list_user_grant_grant_name
	privilege_category = var.list_user_grant_privilege_category
	privilege_type = var.list_user_grant_privilege_type
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

ListUserGrant Reference

The following attributes are exported: