Skip to content

Remove‐PIMEntraRoleActiveAssignment

Loïc MICHEL edited this page Mar 12, 2024 · 1 revision

Description:

Remove active assignement defined for $rolename and principalID $principalID

Samples:

🔷 Remove the active assignment for the role Arcpush and principal $principalID, at a specific date

    PS> Remove-PIMEntraRoleActiveAssignment -tenantID $tenantID -rolename "AcrPush" -principalID 3604fe63-cb67-4b60-99c9-707d46ab9092  -startDateTime "2/2/2024 18:20"

🔷 Remove the active assignement for the role webmaster and username "loic"

    PS> Remove-PIMEntraRoleActiveAssignment -tenantID $tenantID -rolename "webmaster" -principalname "loic" -justification 'TEST'

Parameters:

Parameter description
$TenantID Entra ID Tenant ID
$rolename Subscription ID
$PrincipalID Principal ID
$PrincipalName Principal name
$startDateTime start time for the removal (immediate if not specified)

📝 Documentation

Clone this wiki locally