0 votes

Hello,

I am having trouble updating adaxes custom attributes when creating a new user with the powershell module, would running the New-AdmUser also trigger an operation succeeded business rule? Here's my example script below.

Import-Module Adaxes

$parentDN = "OU=GroupIDtesting,DC=test,DC=local" $name = "Adaxes8 Name" $firstName = "Adaxes8" $lastName = "Name" $title = "Testing" $EmployeeID = "999199" $MobilePhone = "999-999-9999"

New-AdmUser $name -Path $parentDN -GivenName $firstName -Surname $lastName -SamAccountName "$firstname.$lastname" -DisplayName "$firstName $lastname" -UserPrincipalName "$firstname.$lastname@test.local" -EmployeeID $EmployeeID -MobilePhone $MobilePhone -OtherAttributes @{adm-CustomAttributeText1 = $title }

by (20 points)

1 Answer

0 votes
by (305k points)

Hello,

When creating a user, to set values for Adaxes custom attributes and for Business Rules to trigger, the New-AdmUser cmdlet requires specifying the -AdaxesService parameter. Finally, your command should look like the following:

New-AdmUser $name -Path $parentDN -GivenName $firstName -Surname $lastName -SamAccountName "$firstname.$lastname" -DisplayName "$firstName $lastname" -UserPrincipalName "$firstname.$lastname@test.local" -EmployeeID $EmployeeID -MobilePhone $MobilePhone -OtherAttributes @{adm-CustomAttributeText1 = $title } -AdaxesService "adaxeshost.company.com"

0

I cannot get -AdaxesService to work. As our vanity url, localhost, or IP address. I keep getting the following error.

New-AdmUser : The parameter is incorrect. (Server: test.local) At line:11 char:1

  • New-AdmUser -Name $name -GivenName $firstName -Surname $lastName -Sam ...
  • 
      + CategoryInfo          : NotSpecified: (:) [New-AdmUser], DirectoryComException
      + FullyQualifiedErrorId : Softerra.Adaxes.PowerShellModule.Commands.NewAdmUserCommandExecutor:ProcessRecord,Softerra.Adaxes.PowerShellModule.Commands.NewAdmUserCommand
0

Hello,

For troubleshooting purposes, please, post here or send us (support[at]adaxes.com) the full script.

Related questions

0 votes
1 answer

Is there a way to grey out the 'Password never expires' option when a admin creates a new user in the Adaxes admin portal? I'm in a closed environment and need to make sure that accounts are not created with this option set. Thanks for any information! -Chad

asked Apr 16, 2015 by chad156 (50 points)
0 votes
1 answer

Good Afternoon, Currently as far as I can tell when defining a new user we are forced to select a location for a newly created user before defining information like the ... If not, is there a better way of applying this sort of functionality? Regards Josh

asked Apr 21, 2014 by jtop (700 points)
0 votes
1 answer

I have a scheduled task that runs the following PowerShell script. $user = New-AdmUser -Server $domain -AdaxesService localhost -Path $workdayDn -ChangePasswordAtLogon $true -PassThru - ... ) over all objects. I'm stumped! Any help would be super appreciated.

asked Sep 5, 2024 by emeisner (160 points)
0 votes
1 answer

we'd like to build a New Joiner user account creation procedure and were wondering if Adaxes is able to read a SharePoint list and build a flow that can create user ... in MS365 Exchange online, if the respective new joiner is approved in the SharePoint list.

asked Aug 4 by Lucian (20 points)
0 votes
1 answer

Hi When reading the REST API documentation it does not mention working directly against Azure AD and Exchange Online. Will this be added? Thanks /Peter Sonander

asked Jan 26, 2023 by Sonander (40 points)
3,739 questions
3,417 answers
8,641 comments
550,348 users