Set-AmsRoleAuthorizationRule

SYNOPSIS

Configures a role authorization rule

SYNTAX

Set-AmsRoleAuthorizationRule [-Id] <String> [-Name <String>] [-AddPrincipalsAllowedJit <Object[]>]
 [-RemovePrincipalsAllowedJit <Object[]>] [-AddPrincipalsDeniedJit <Object[]>]
 [-RemovePrincipalsDeniedJit <Object[]>] [-GroupName <String>] [-MaximumAccessDuration <TimeSpan>]
 [-DefaultAccessDuration <TimeSpan>] [-AllowExtension <Boolean>] [-Description <String>]
 [-RuleExpiryDate <DateTime>] [-Enabled <Boolean>] [-Notes <String>]
 [-UserRequestReasonRequirement <AuditReasonFieldState>] [-NotificationChannelsSuccess <String[]>]
 [-NotificationChannelsFailure <String[]>] [-SiteName <String>] [-DomainControllerName <String>]
 [<CommonParameters>]

DESCRIPTION

This cmdlet allows you to change properties on role authorization rules

EXAMPLES

Example 1

Renames a role

Example 2

Adds `Domain\user1` to the list of users who are allowed to access this role

Example 3

Get a rule by its name, and adds `Domain\user1` to the list of users who are denied to access this role

Example 4

Get a rule by its name, and disables it

PARAMETERS

-AddPrincipalsAllowedJit

A list of usernames or SIDs to add to the list of users who are allowed to access this role

-AddPrincipalsDeniedJit

A list of usernames or SIDs to add to the list of users who are not allowed to access this role

-AllowExtension

Specifies if the user is allowed to extend their access request before it expires

-DefaultAccessDuration

The amount of time the user is offered to access this role by default. This value cannot be greater than the value defined in MaximumAccessDuration

-Description

A description of the role, as shown to end users

-Enabled

Indicates if the rule should be enabled

-GroupName

The name of the group that users will be added to when granted access to this role

-Id

The ID of the role to edit

-MaximumAccessDuration

The maximum amount of time the user can request access to this role

-Name

The name of the role, as shown to end users

-Notes

A custom field to store notes, only visible to AMS administrators

-NotificationChannelsFailure

A list of channel IDs that should be notified when a user is denied access to this role

-NotificationChannelsSuccess

A list of channel IDs that should be notified when a user is granted access to this role

-RemovePrincipalsAllowedJit

A list of usernames or SIDs to remove from the list of users who are allowed to access this role

-RemovePrincipalsDeniedJit

A list of usernames or SIDs to remove from the list of users who are not allowed to access this role

-RuleExpiryDate

A date and time when this rule will expire, expressed in local time

-UserRequestReasonRequirement

Specifies if the user must provide a reason for the request, if they can optionally provide a reason, or are not prompted at all for a reason

-DomainControllerName

The name of a domain controller to use when performing the JIT operation against

-SiteName

The name of the site to use when trying to find a domain controller to perform the JIT operation against

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

OUTPUTS

Lithnet.AccessManager.PowerShell.RoleAuthorizationRulePSObject

NOTES

Use of this cmdlet requires an Enterprise Edition license.

Last updated

Was this helpful?