This module was created to make user provisioning to the Varbi system as easy as possible. It was also created in a way that other organizations can utilize it.
There are a few steps you need to complete before you can start using the cmdlets in this module. Please make sure you've followed each one.
- Powershell 5.1
- Licensed version of Varbi to get access to the API.
- API key and a service account provided by the vendor.
- Start a powershell session with the account that will be running the tasks. This is because when doing steps 4 & 5, the credential files will only be readable by the very same account that created them.
Install-Module -Name VarbiAPIImport-Module -Name VarbiAPI. You will get a warning saying that there is no settings file present, but let's skip this for now.New-SecretSee New-Secret.md for examples.- Run
Initialize-SettingsFile. See Initialize-SettingsFile.md for examples. - Finally import the module again
Import-Module VarbiAPI -Force. And you should be good to go!
VarbiAPI is currently only maintained by me. I will try to add as many features as possible.
-
- New public cmdlets:
- New private functions:
Get-SyncData- Handles data sent from
Sync-VarbiFromADGroupand returns a structured object with information on what needs to be done regarding the synchronization.
- Handles data sent from
Write-CMTLog- Writes logs from
Sync-VarbiFromADGroupin a format that CMTrace reads really well.
- Writes logs from
Write-StartEndLog- Writes starting and ending point in the log file
- Various edits to
Sync-VarbiFromADGroup,Update-VarbiUserandFormat-APICall
-
- New public cmdlets:
- New private functions:
Compare-Object- A proxy function for the built-in Compare-Object cmdlet, created by DBremen
- Various fixes in cmdlets and functions.
-
- New public cmdlets:
- New private functions:
ConvertFrom-ADObject- Converts an AD user object into json prepared object with all the right properties.
- New nested module:
- SecretClixml
- Used to encrypt and store the API key aswell as retrieving it.
- SecretClixml
-
- New public cmdlets:
- New private functions:
Get-FilePath- Used in conjunction with
Initialize-SettingsFileto prompt user for storing settings file and loading credential file.
- Used in conjunction with
Format-UsedParameter- Takes data and formats it accordingly
Format-APICall- Formats all properties into a splatted object to be used by
Invoke-VarbiAPI
- Formats all properties into a splatted object to be used by
-
- Created this repository, first commit.
- Available but not entirely finished public cmdlets:
- Kind of finished private functions:
Invoke-VarbiAPI- Sort of the heart of it all. Every public function calls this one with it's formatted request string.
Get-EncryptedAPIKey- Retrieves the encrypted API key. Needs to be run under the same context as when it was stored.
- Adding compability for working more schemas, such as Permissions, Organizations and Privileges
- Improve error message handling
Varbi for great API documentation.