cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
648
Views
0
Helpful
0
Replies

Could the non-enrolled users be removed with powershell?

ortiga88
Level 1
Level 1

I have the following code:

$url = 'https://api-.....com/admin/v1/users'

$method = 'GET'

$date = (Get-Date).ToUniversalTime().ToString("ddd, dd MMM yyyy HH:mm:ss -0000").replace('.','')

$headers = @{
'Authorization'='Basic ...';
#'X-Duo-Date'='mi, 21 sep 2022 07:31:31 -0000';
'X-Duo-Date'=$date;
'Content-Type'='application/x-www-form-urlencoded'
}

iwr $url -Method $method -header $headers

clear-variable url,method,headers

{“code”: 40103, “message”: “Invalid signature in request credentials”,
“stat”: “FAIL”}

give me this code does anyone know what is happening?

0 Replies 0
Quick Links