Or is there another solution to solve this?
Hello Boris,
The script should be executed in a business rule triggering After creating a user. The following tutorial should be helpful: https://www.adaxes.com/tutorials_AutomatingDailyTasks_RunPowerShellScriptAfterCreatingUser.htm.
Also, if you assign Microsoft 365 licenses with access to Exchange Online in Adaxes, the process of enabling remote mailboxes can be automated without using scripts. For details, have a look at the following help article: https://www.adaxes.com/help/EnablingDisablingRemoteMailboxes.
When the UPN being created is the same as an existing one except for the case. For instance, the new UPN is sally.fields but there's an existing Sally.Fields. The ... but then fails to create the AD account indicating that the UPN is not unique forestwide.
The rule runs but since the first name and last name are passed as parameters, I only get the sequential # as a userID without the initials.
Thanks for the info. I'm now grabbing the %adm-ManagerUserName% value, but need to remove the final 21 characters of it so it contains only their username and not our ... this in the PowerShell Script Editor for my business rule, I get the following error:
We have Exchange 2010 OnPrem and Office 365 Exchange Online in a full Hybrid environment. Using AD Active Sync. We have now moved all of our mailboxes to Exchange ... manage the OnPrem Exchange AD Attributes after the last Exchange 2010 server is removed?
Currently, when I disable a user account in Adaxes, the group memberships of the user remain intact. I'd like to automate the removal of group memberships such as distribution ... a list of groups/DL that the user was previously in and removed from. Thanks!