AAD-Group-Writeback-Script
AAD-Group-Writeback-Script copied to clipboard
Suggested extension
I was thinking something along the lines of this script, so I may just adapt this one, however my suggested mode of operation is as follows:
- Admin is logged into jump host and uses PowerShell to activate PIM group
- Script polls the activation request until it is successful (need to think up a way to backgrounding this for PIM requests which require approval)
- Once PIM is successful, script activates the write back script running as an automation runbook via a webhook, supplying the PIM group name. Write back script is running on a hybrid worker. Use time base group membership feature so that the removal is not reliant on the script running.
- Elevation script then polls the desired on-prem group until membership is active
- Once elevation is complete, Elevation script purges the logged in user's Kerberos token so that the elevated access is available immediately.