Edit

Share via


Set-EntraBetaPrivilegedRoleAssignmentRequest

Update a role assignment request

Syntax

Default (Default)

Set-EntraBetaPrivilegedRoleAssignmentRequest
    -Id <String>
    [-Schedule <AzureADMSPrivilegedSchedule>]
    [-AssignmentState <String>]
    [-Decision <String>]
    [-Reason <String>]
    -ProviderId <String>
    [<CommonParameters>]

Description

Update a role assignment request

Examples

Example 1

PS C:\> Set-EntraBetaPrivilegedRoleAssignmentRequest -ProviderId AzureResources -Id 8d28fcb3-1373-4810-8e84-75adea9a18be -Reason "{'RequestorReason':'test','AdminReason':'gg'}" -Decision "AdminDenied"

Update a role assignment request by setting to denied

Parameters

-AssignmentState

The state of assignment, and the values can be Eligible or Active. For decision of AdminApproved, it is required.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Decision

The administrator decision of the role assignment request. The value should be updated as AdminApproved or AdminDenied.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Id

The unique identifier of the specific role assignment request

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-ProviderId

The unique identifier of the specific provider

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-Reason

The reason provided by the administrator for his decision.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Schedule

The schedule of the role assignment request. For status of AdminApproved, it is required.

Parameter properties

Type:AzureADMSPrivilegedSchedule
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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

Inputs

System.String

Outputs

System.Object