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 (270k 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 (680 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)
0 votes
1 answer

As there's no built-in way (at least that I can find) to create new reports I was going to try and create one myself using a scheduled task. I'm trying to create a report ... this to work? I'd like one email with all the users, not one email per user. Thanks!

asked Oct 3, 2012 by bemho (520 points)
0 votes
0 answers

Currently have a new user form that automatically sets a password, by Property Pattern, to be reset by the user after. I seem to be having an issue when I enable that ... like the user to be created with the password that was defined in the Property Pattern.

asked Dec 17, 2021 by thedoo (60 points)
3,326 questions
3,026 answers
7,727 comments
544,682 users