Thursday, April 25, 2024
HomePowershellManaging Kiuwan customers by way of API with PowerShell

Managing Kiuwan customers by way of API with PowerShell


You probably have Kiuwan with enabled SAML, and also you handle entry to the enterprise app utilizing teams – this script is for you.

With this script operating every now and then (in my case it’s each quarter-hour) after a person supervisor in Kiuwan provides a person – person is added to the related group in Lively Listing. If person is eliminated – then sure person is faraway from the Lively Listing group.

The script might be discovered right here, the important thing half is that this:

$USER = "Kiuwan_API_User"

# PUT USER PASSWORD HERE <<
$password = 'PutPasswordHere'

$HeaderAuth = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $USER, $password)))
$SessionHeader = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$SessionHeader.Add('Authorization',('Fundamental {0}' -f $HeaderAuth))
$SessionHeader.Add('Settle for','software/json')
$SessionHeader.Add('Content material-Kind','software/json')

# PUT KIUWAN ID HERE <<
$SessionHeader.Add('X-KW-CORPORATE-DOMAIN-ID','PutDomainIdHere')

$URL = "https://api.kiuwan.com/customers"
$APIResponse = Invoke-RestMethod -Technique Get -Uri $URL -Headers  $Sessionheader -Verbose -TimeoutSec 33

Extra about Kiuwan’s API might be discovered right here https://static.kiuwan.com/rest-api/kiuwan-rest-api.html

And right here is an effective video displaying it’s capabilities might be discovered right here:



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments