OneLogin is a cloud identity and access management application. This PowerShell module was created to interact with OneLogin's REST API to assist in automating identity management needs. This project has no affiliation with OneLogin, Inc.
PowerShell v5.0 or greater
While this module has only been tested on PowerShell v5.0, support for downlevel versions may be added when more testing is in place.
In a PowerShell console run Install-Module OneLogin
and confirm that you'd like to install the module. Once installed, you can import the module by running Import-Module OneLogin
.
In order to make calls against the OneLogin REST API, you'll need to generate a credential pair in the OneLogin admin portal. Instructions for this can be found here.
Once you have a credential pair, you're ready to start using the OneLogin module. First, run the New-OneLoginToken command and pass it the API credential. Use the client key as the username, and the client secret as the password:
$OLCred = Get-Credential
Connect-OneLogin -Credential $OLCred -Region us
Now that you've generated an access token, you can start running commands against your OneLogin account. Start by checking out your users:
Get-OneLoginUser -Filter @{email = "matt*"}
You can find other commands to explore and manage groups, roles, events and more by running Get-Command -Module OneLogin
. Happy scripting!