Skip to content

Commit c25b25d

Browse files
committed
corrections per PM
1 parent 8a8a03e commit c25b25d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/active-directory/privileged-identity-management/powershell-for-azure-ad-roles.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ There are four main objects in the setting. Only three of these objects are curr
119119

120120
[![](media/powershell-for-azure-ad-roles/get-update-role-settings-result.png "Get and update role settings")](media/powershell-for-azure-ad-roles/get-update-role-settings-result.png#lightbox)
121121

122-
To update the role setting, you will need to first define a setting object as follows:
122+
To update the role setting, you must get the existing setting object for a particular role and make changes to it:
123123

124124
$setting = Get-AzureADMSPrivilegedRoleSetting -ProviderId 'aadRoles' -Filter "roleDefinitionId eq 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'"
125-
$setting.userMemberSetting.justificationRule = "{'required':false}"
125+
$setting.UserMemberSetting.justificationRule = "{'required':false}"
126126

127127
You can then go ahead and apply the setting to one of the objects for a particular role as shown below. The ID here is the role setting ID that can be retrieved from the result of the list role settings cmdlet.
128128

0 commit comments

Comments
 (0)