Powershell functions for working with the Five9 Admin Web Service API.
This is a fork of the original project created by sqone2, licensed under the MIT License. This fork is maintained by Five9.
✨ NEW: This library now supports both PowerShell 5.1 and PowerShell 7+ (Windows, macOS, and Linux)!
Compatibility:
- ✅ Windows PowerShell 5.1
- ✅ PowerShell 7.0+ (Windows, macOS, Linux)
📚 Documentation:
- Migration Guide - Complete PowerShell 7 migration guide
- Changelog - Recent changes and updates
- Contributing - How to report issues and propose changes
You can install or update PSFive9Admin by running this command in any PowerShell session:
irm 'https://raw.githubusercontent.com/Five9DeveloperProgram/PSFive9Admin/main/PSFive9Admin-installer.ps1' | iex# Clone the repository
git clone https://github.com/Five9DeveloperProgram/PSFive9Admin.git
# Navigate to module directory
cd PSFive9Admin
# Import the module
Import-Module ./PSFive9Admin.psd1Install-Module -Name PSFive9Admin -Scope CurrentUserConnect-Five9AdminWebService -Verbose
More example scripts: assets/ExampleScripts
Get existing user:
Get-Five9User -NamePattern "jdoe@domain.com"
Create a new user:
New-Five9User -DefaultRole Agent -FirstName "Susan" -LastName "Davis" -UserName sdavis@domain.com -Email sdavis@domain.com -Password 'P@ssword!'
Create a new skill:
New-Five9Skill -Name "MultiMedia"
Add new user to new skill:
Add-Five9SkillMember -Name "Multimedia" -Username "sdavis@domain.com"
Q: Can I use this with Five9 HIPAA environments? A: That depends on your Five9 environment and permissions. Confirm with your Five9 representative that the Admin Web Service API is enabled for your HIPAA tenant before use.
Q: What API permissions are required? A: The account must have Admin Web Service access and permissions for the objects you are querying or modifying.
Q: Does this support MFA authentication? A: The module uses basic authentication over HTTPS. If MFA is enforced, use a supported API user or credential flow that your Five9 tenant allows for API access.
Q: What is the rate limit for API calls? A: Rate limits are enforced by Five9 and can vary by tenant. Add delays for bulk operations if you encounter throttling.
Q: Can I run this in Azure Functions or AWS Lambda? A: Yes, if your runtime supports PowerShell 7 and outbound HTTPS access to the Five9 API. Use the GitHub install method in your deployment pipeline.
Simply re-run the initial installation steps
# Navigate to the module directory
Set-Location "$env:USERPROFILE\Documents\WindowsPowerShell\Modules\PSFive9Admin"
# Pull latest changes
git pull
# Re-import the module to refresh
Import-Module PSFive9Admin -Force
This repository contains sample code which is not an official Five9 resource. It is intended solely for educational and illustrative purposes to demonstrate possible ways to interact with Five9 APIs.
Under the MIT License:
- This is not officially endorsed or supported software by Five9.
- Any customizations, modifications, or deployments made with this code are done at your own risk and sole responsibility.
- The code may not account for all use cases or meet specific requirements without further development.
- Five9 assumes no liability and provides no support for issues arising from the use of this code.
For production-ready tailored implementations, we strongly recommend working with Five9’s Professional Services and Technical Account Management teams.
