0 votes

How can I add a proxy address to a user account using addaxes and a custom command or business rule? I have tried to use a powershell script to do it but since the active directory module uses a later version of PowerShell the script fails within addaxes. I did look at using set-admuser but it didn't look like it would work either? Below is the script I was using.

Import-Module ActiveDirectory
$User = "%SamAccountname%"
get-aduser $user | set-aduser -add @{ProxyAddress=sip:"%userPrincipalName%"}


by (150 points)

Ok, I was over thinking this a bit. instead of using a script I just updated the account by using modify the account and using the "email proxy address". I was looking for proxy address like it is in AD and didn't realize that addaxes added email to it.


Thats the only solution to this issue?

1 Answer

0 votes
by (215k points)
selected by
Best answer


That's the recommended one. It is the fastest and the safest approach. We recommend using scripts only when modifications are not possible or very hard to achieve with the help of built-in actions. For example, if there was complicated logic behind selecting which proxy address to add, then it would be more efficient to use scripts. Here's an example of a case when you won't do without scripts: Generate unique primary SMTP address.

Related questions

0 votes
1 answer

We just busted our licence limit of 400, but we are only 320 employees. All the extras are either service accounts, external contractors accounts or old user accounts ... is reinstated on the 'managed accounts' list? Thank you for the guidance, Louis

asked Apr 11 by lw.fa (60 points)
0 votes
1 answer

I have a scheduled task that runs a Powershell script against an AD group, "Group 1". I need to get all of the members of Group 1, and add them to Group 2. The ... identity in the error message start with 'user;'? What is the correct way to accomplish this?

asked Aug 27, 2019 by ngb (90 points)
0 votes
1 answer

Hi I need to execute the script when user is added to a group. In that script I need to access group properties - name, etc. and user's properties. I have no problem ... don't think Initiator is giving me the right user. Any help will be much appreciated. V.

asked Oct 31, 2017 by xirurg (100 points)
0 votes
1 answer

HI Support, I'm looking for a business Rule that remove a user from a couple of groups after the User is added to a group. ie 1. The User MaxMi is added to the ... not able to create a powershell scripts for removing the added user from the other Groups. Thx,

asked Jan 4, 2016 by Napoleon (700 points)
0 votes
1 answer

I'm using the example from the following SDK page: http://www.adaxes.com/sdk/ManagingSecurityRoles.html # Allow: Reset Password -> User $entry = $role.Permissions.Create() ... from the example. What am I missing here? Thanks for any help you can provide

asked Nov 16, 2015 by drew.tittle (810 points)
2,803 questions
2,535 answers
62,185 users