Remove users from a policy
Information
You can download the script for collecting statistics from this link.
Prerequisites
- A working Axidian Access server.
- The presence of an Authentication API license.
How the script works
The script removes a user from the specified policy using the standard Axidian Access Core API.
Configuration
| Parameter | What it is responsible for | Requirement | Default settings |
|---|---|---|---|
| $serverUrl | Contains the URL of the Axidian Access server | Required parameter | None |
| $logsOnFile | Enabling\disabling logging to a file | Required parameter | Enabled by default |
| $logsOnConsole | Enabling\disabling logging to the console | Required parameter | Disabled by default |
| $apiVersion | Version of the API used in the script | Required parameter | Default value — v6 |
Example of execution
- Run the main.ps1 script.
- Enter the user name in UPN format. A list of the numbers of all policies that the user belongs to will be generated.
- Enter the numbers of the policies from which you want to remove the user, separated by commas (or specify only one policy).
Example
Enter UPN: Admin-Axidian@axidian.local
User is in scope of the following policies:
0. Radius
1. Main
2. WL + ESSO
Choose policies to remove user from (e.g. 0,1,2): 0,2
User successfully removed from Radius
User successfully removed from WL + ESSO