Skip to main content

Roleassignmentdto

Properties

NameTypeDescriptionNotes
IdStringAssignment Id[optional]
RoleBasereferencedto[optional]
CommentsStringComments added by the user when the assignment was made[optional]
AssignmentSourceStringSource describing how this assignment was made[optional]
AssignerRoleassignmentdtoAssigner[optional]
AssignedDimensions[]BasereferencedtoDimensions assigned related to this role[optional]
AssignmentContextRoleassignmentdtoAssignmentContext[optional]
AccountTargets[]Roletargetdto[optional]
StartDateSystem.DateTimeDate when assignment will be active, if access was requested with a future start date. If null, assignment is active immediately[optional]
RemoveDateSystem.DateTimeDate that the assignment will be removed[optional]
AddedDateSystem.DateTimeDate that the assignment was added[optional]

Examples

  • Prepare the resource
$Roleassignmentdto = Initialize-Roleassignmentdto  -Id 1cbb0705b38c4226b1334eadd8874086 `
-Role null `
-Comments I'm a new Engineer and need this role to do my work `
-AssignmentSource UI `
-Assigner null `
-AssignedDimensions [{"id":"1acc8ffe5fcf457090de28bee2af36ee","type":"DIMENSION","name":"Northeast region"}] `
-AssignmentContext null `
-AccountTargets null `
-StartDate 2026-07-10T18:45:37.098Z `
-RemoveDate 2026-07-11T18:45:37.098Z `
-AddedDate 2025-07-11T18:45:37.098Z
  • Convert the resource to JSON
$Roleassignmentdto | ConvertTo-JSON

[Back to top]