Performing common administrative tasks using the PingID API with Windows PowerShell
Many PingID management features are available through the PingID API using Windows PowerShell.
Before you begin
-
Have a Registering a PingOne account.
-
Have Installing Windows PowerShell installed on your server.
About this task
While it may not be necessary to build a custom application, the PingID API can be helpful in performing common tasks through Windows Powershell. The linked .zip
file contains scripts to run several common tasks.
Steps
-
Download the
pingid.properties
file from PingOne for Enterprise.-
Log in to https://admin.pingone.com.
-
Go to Setup → PingID → Client Integration.
-
In the Integrate with PingFederate and other clients section, click Download.
-
-
Download and configure the PowerShell scripts.
-
Go to https://github.com/pingidentity/pingid-powershell-scripts.
-
Click Clone or download → Download ZIP.
-
Extract the
.zip
file on a server with PowerShell installed. -
Edit the
pingid-api-helper.psl
file to include the$org_alias
,$use_benefit
, and$token
values from yourpingid.properties
file.
-
-
Run administrative task PowerShell scripts.
The
.zip
file contains several scripts that you can use to perform tasks similar to the following examples.Task Script Obtain user details
PS C:\Scripts\pingid-powershell-scripts-master\scripts>./Get-User-Details -UserName <user name>
Put user in temporary bypass mode
PS C:\Scripts\pingid-powershell-scripts-master\scripts>./Toggle-User-Bypass -UserName <user name> -Hours 8
Remove user from temporary bypass mode
PS C:\Scripts\pingid-powershell-scripts-master\scripts>./Toggle-User-Bypass -UserName <user name>
Remove a user from PingID
PS C:\Scripts\pingid-powershell-scripts-master\scripts>./Delete-User -UserName <user name>
If you need to change your PowerShell execution policy, refer to About Execution Policies.