0 votes

When we create a new user in Adaxes, we can select the job title in a dropdown because we have defined it in the property pattern. Now I would like to create a custom command for a special user which has to specify name, first name, exit and Job Title. However, I can't set the dropdown of the Job Title the same way as on the interface "Create User". How can I bring the same dropdown from "create user" into my custom command? image.png

Thank you!

by (300 points)

1 Answer

0 votes
by (14.1k points)

Hello,

You can use the following script from our repository to copy allowed property values from a property pattern to a custom command parameter: https://www.adaxes.com/script-repository/copy-allowed-property-values-from-property-pattern-to-custom-command-parameter-s598.htm.

0

Hi! Jumping into this old thread to follow up on the matter. The script you linked only seems to copy over contraints, but is there a way to copy over the "Must be one of the following values only" area to the parameter instead?

0

Hello,

The script does exactly what is required. It copies the values specified in the Must be one of the following values only section of a property pattern item to the custom command parameter. Pay attention that the custom command parameter must be of the Drop-down list type. Also, make sure to adjust the script variable according to your needs, the variables are described in the Parameters section of the repository article.

0

I double checked based on your advice, but I'm still running into the "No constraint is defined for the ''Job Type' property in the property pattern" warning when I run the script.

When I look at the script, it's checking for VALUEFORMAT and VALUERANGE. Is the 'following values only' inside either of those constraint types or would it be its own constraint type?

0

Hello,

The error occurs only in case there are no settings in the specified property pattern for the specified property. If you set the $propertyName variable to Job Title, the behavior is expected. As it is specified in the variable description, it must be set to an LDAP name (in this case title) of a property, not a display name.

Related questions

0 votes
1 answer

How do I script my custom command to display the output in the web interface? For instance, I need to see the output of the following ... interface. add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010 Get-MailboxDatabase | Get-MailboxDatabaseCopyStatus

asked Dec 11, 2012 by mdeflice (350 points)
0 votes
0 answers

Is it possible to do something such as this: When creating a user in the web interface, setup the form so that certain fields have a dropdown list of available values, ... "department", they would see a dropdown list of pre-populate options to choose from.

asked Aug 11, 2016 by HDClown (220 points)
0 votes
1 answer

I'm lost as to why "Create User" doesn't show up. I made a new dashboard, mirroring the default Help Desk. Under Actions, I enabled Create User. On the web interface, the option to create a user is not showing. Am I missing a step?

asked May 15 by tromanko (330 points)
0 votes
1 answer

We have a series of transforms we use for users including moving to different OU's. Is there a way to open the user's object after the command completes much in the same way a user creation does?

asked 1 day ago by msheppard (470 points)
0 votes
1 answer

Hello I have a piece of code that troubles me: Import-Module Adaxes # $Server = $Context.GetObjectDomain("%distinguishedName%") $Advisgruppe = "%distinguishedName%" $Member = $Context. ... ). In the case above, it is a specific security group. - Thanks

asked Mar 16, 2016 by Boxx.dk (2.6k points)
3,548 questions
3,239 answers
8,232 comments
547,814 users