Skip to main content

scope_access_review_default_settings

Creates, updates, deletes, gets or lists a scope_access_review_default_settings resource.

Overview

Namescope_access_review_default_settings
TypeResource
Idazure.authorization.scope_access_review_default_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
autoApplyDecisionsEnabledbooleanFlag to indicate whether auto-apply capability, to automatically change the target object access resource, is enabled. If not enabled, a user must, after the review completes, apply the access review.
defaultDecisionstringThis specifies the behavior for the autoReview feature when an access review completes. Known values are: "Approve", "Deny", and "Recommendation". (Approve, Deny, Recommendation)
defaultDecisionEnabledbooleanFlag to indicate whether reviewers are required to provide a justification when reviewing access.
instanceDurationInDaysintegerThe duration in days for an instance.
justificationRequiredOnApprovalbooleanFlag to indicate whether the reviewer is required to pass justification when recording a decision.
mailNotificationsEnabledbooleanFlag to indicate whether sending mails to reviewers and the review creator is enabled.
recommendationLookBackDurationstringRecommendations for access reviews are calculated by looking back at 30 days of data(w.r.t the start date of the review) by default. However, in some scenarios, customers want to change how far back to look at and want to configure 60 days, 90 days, etc. instead. This setting allows customers to configure this duration. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This _ code can be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new TimeSpan(hours, minutes, seconds)).
recommendationsEnabledbooleanFlag to indicate whether showing recommendations to reviewers is enabled.
recurrenceobjectAccess Review Settings.
reminderNotificationsEnabledbooleanFlag to indicate whether sending reminder emails to reviewers are enabled.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscopeGet access review default settings for the subscription.
putexecscopeGet access review default settings for the subscription.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
scopestringThe scope of the resource. Required.

SELECT examples

Get access review default settings for the subscription.

SELECT
id,
name,
autoApplyDecisionsEnabled,
defaultDecision,
defaultDecisionEnabled,
instanceDurationInDays,
justificationRequiredOnApproval,
mailNotificationsEnabled,
recommendationLookBackDuration,
recommendationsEnabled,
recurrence,
reminderNotificationsEnabled,
systemData,
type
FROM azure.authorization.scope_access_review_default_settings
WHERE scope = '{{ scope }}' -- required
;

Lifecycle Methods

Get access review default settings for the subscription.

EXEC azure.authorization.scope_access_review_default_settings.put 
@scope='{{ scope }}' --required
@@json=
'{
"mailNotificationsEnabled": {{ mailNotificationsEnabled }},
"reminderNotificationsEnabled": {{ reminderNotificationsEnabled }},
"defaultDecisionEnabled": {{ defaultDecisionEnabled }},
"justificationRequiredOnApproval": {{ justificationRequiredOnApproval }},
"defaultDecision": "{{ defaultDecision }}",
"autoApplyDecisionsEnabled": {{ autoApplyDecisionsEnabled }},
"recommendationsEnabled": {{ recommendationsEnabled }},
"recommendationLookBackDuration": "{{ recommendationLookBackDuration }}",
"instanceDurationInDays": {{ instanceDurationInDays }},
"recurrence": "{{ recurrence }}"
}'
;