Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove the visibility of IdentityNow Applications from users. Associated Blog Post can be found here
$time = [int][double]::Parse((Get-Date -UFormat %s))
$appListURI = "https://$($orgName)$($time)"
$appList = Invoke-RestMethod -Uri $appListURI -Method Get -WebSession $IDN
$appUpdateURI = "https://$($orgName)"
# Turn off App Visibility in Request Centre
$appBody = @{
"launchpadEnabled" = $false ;
"provisionRequestEnabled" = $false ;
"appCenterEnabled" = $false
$body = $appBody | ConvertTo-Json
if ($appList) {
foreach ($app in $appList) {
write-host -ForegroundColor Green "Disabling App: $($"
try {
$updateResponse = Invoke-RestMethod -Uri "$($appUpdateURI)/$($" -Method POST -Body $body -WebSession $IDN
catch {
write-host -ForegroundColor Red "Failed to update app $($"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.