functions/Get-AllUsers.ps1
<#
.SYNOPSIS Retrieves all users (ldap, saml, and local) from Code Dx. .DESCRIPTION Retrieves all users (ldap, saml, and local) from Code Dx. Requires admin level priveleges. .EXAMPLE Get-AllUsers #> Function Get-AllUsers { [cmdletbinding()] param() $uri = $CDXSERVER + "/api/admin/users" $UserList = Invoke-RestMethod -Uri $uri -Method Get -Headers $headers -ContentType "application/json" return $UserList } |