/Veracode-UM-Tool

User management project using the new Veracode APIs

Primary LanguagePowerShellMIT LicenseMIT

Veracode-UM

User management project using the new Veracode APIs

Before use:

Install the components Veracode needs to use:
pip install httpie
pip install veracode-api-signing

List of implemented functions:

New-VeracodeUser - Create new users
New-UserJson - Creates the JSON to use in New-VeracodeUser
New-VeracodeTeam - Create a new team
Get-VeracodeUserID - Get a user ID based on email
Get-VeracodeTeamID - Gets the ID of a team based on its name
Get-VeracodeRoles - Get list of roles based on job title
Block-VeracodeUser - Block user based on email
Debug-VeracodeAPI - Validate the API return
Update-VeracodeUserRoles - Updates the list of roles for a user
Remove-VeracodeUser - Deletes user based on email

How to use?

Import the VeracodeUM.psm1 module in Powershell
Use the functions in your own scripts
If you want to use it in a script format, use the scripts from the corresponding folders

How to use in Linux?

I recommend that you consult the documentation to verify all the details:
https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.3
This project was tested on Ubuntu 22.04.1 LTS
After installing Powershell on Linux, just use it without any changes