Delete CC Users with Windows Powershell
This process requires Administrator access to HYPR Control Center and Windows PowerShell.
Instructions
set $hypr_token
set $userToDelete
set $hypr_appId
$hypr_host = "https://host.domain.com"
$hypr_token = "##########################"
$headers = New-Object "System.Collections.Generic.Dictionary\[\[String\],\[String\]\]"
$headers.Add("Content-Type", "application/json; charset=utf-8;")
$headers.Add("Authorization", "Bearer $hypr_token")
$headers.Add("accept", "*/*")
$headers.Add("sec-fetch-mode", "cors")
$headers.Add("accept-encoding", "gzip, deflate, br")
$headers.Add("accept-language","en-US,en;q=0.9")
$userToDelete = "user.name@domain.com"
$hypr_appId = "Demo"
$body = @"
{
"appId": "$hypr_appId",
"username": "$userToDelete",
}
"@
$params = @{
Uri = "$hypr_host" + "/cc/api/rpUser/delete"
Headers = $headers
Method = 'POST'
ContentType = 'application/json'
Body = $body
}
$response = Invoke-RestMethod @params
$response | ConvertTo-Json
The specified user will be deleted from HYPR Control Center.