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 (250 points)

1 Answer

0 votes
by (177k 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 (280 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 (3.4k 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 (3.8k points)
0 votes
0 answers

I am creating a new scheduled task and form. We would like to have the ability to schedule the reassignment of a staff member to a different location in the future. ... context, my manager won't necessarily know when he tries to move somebody. Thanks everybody

asked May 21 by jcalvert (650 points)
0 votes
1 answer

Hello I am trying to set up a script to copy the 'Members Of' from specific accounts to a new user account after creating the user. Something very similar to this: https:/ ... to the ever changing nature of the business. Is someone able to help me with this?

asked 1 day ago by adantona (450 points)
2,183 questions
1,948 answers
5,392 comments
5,257 users