Hi, we just recently installed Adaxes and would like to implement a PowerShell script that I have previously written which cleans up user objects if they have been manually moved to a specific OU (uses the Get-ADUser and Set-ADUser commands). The script itself has the OU defined and works on its own (when I run it under my domain admin credentials). However, we're running into issues getting the script to execute as the Adaxes service account.
Unfortunately, the only way we can get the script to work is with Domain Admin rights. However, we would like to eventually get away from that and just delegate the minimium required rights to this service account. I just cannot determine what rights are required to run those commands.
We're basically seeing this as the error message: " Insufficient access rights to perform the operation Stack trace: at <ScriptBlock>, <No file>".