This script is written by Antony Chiu
Modified by Kevin Chia.
This Powershell script allows you to perform the following functions on AppScan on Cloud (https://cloud.appscan.com):
- Check Current Token - Check your connection status with ASoC
- List Current Users - List all the users on your ASoC
- List Current Apps - List all Apps on your ASoC
- List Assist Group - List all Assist Group on your ASoC
- Invite Users - Invite the users from ASoC_UserInviteList.txt
- Delete a selected set of Users by Role - Batch Delete a set of users by their role
- Delete a selected Asset Group - Batch delete a particular asset group
- Get Counts - Get application and user counts
In order to use the script, there are some things you need to do.
- Provide API KEY and SECRET in config.json:
{
"API_KEY": "YOUR ASOC API KEY",
"API_SECRET": "YOUR ASOC API SECRET",
"BASEURL": "https://cloud.appscan.com/api/V2"
}
Note: If you are working with ASoC EU, change the BASEURL to the following:
https://cloud.appscan.com/eu/api/V2
To run the script, use ASoC_MainMenu.ps1
1.Put all the emails you want to invite in ASoC_UserInviteList.txt
Make sure each line contains only 1 email address
For example:
Afterwards, use Option 5 to invite users.
Use Option 6 to delete all users by role ID.
Use Option 7 to delete a selected asset group