Skip to main content

Remove users from a policy

Information

You can download the script for collecting statistics from this link.

Prerequisites

How the script works

The script removes a user from the specified policy using the standard Axidian Access Core API.

Configuration

ParameterWhat it is responsible forRequirementDefault settings
$serverUrlContains the URL of the Axidian Access serverRequired parameterNone
$logsOnFileEnabling\disabling logging to a fileRequired parameterEnabled by default
$logsOnConsoleEnabling\disabling logging to the consoleRequired parameterDisabled by default
$apiVersionVersion of the API used in the scriptRequired parameterDefault value — v6

Example of execution

  1. Run the main.ps1 script.
  2. Enter the user name in UPN format. A list of the numbers of all policies that the user belongs to will be generated.
  3. 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