0 votes

Is it possible to have one field in a "Create User" request to be required depending on the value of another.

For instance, if i selected the EmployeeType as staff, the EmployeeNumber would become a required field, but if i chose Contractor, this field would not be required.

I have tried to have two different property patterns assigned to the same users OU one for employee and one for contractors but this doenst give the desired effect. To get aorund this i could have two seperate forms, one for staff and one for contractos but i wanted to see if there was a neater way to provide the pre-submit validation.

by (60 points)

1 Answer

0 votes
by (216k points)

Chris,

Actually, you have three options.

Two of them you have already listed, that is using different Property Patterns and different Create User forms. The third one is to check EmployeeType with a PowerShell script and make the EmployeeNumber property required depending on the value of the EmployeeType property. See the Validate/Modify User Input Using a Script Tutroial. Note, however, that this check will only be performed after the create user request has been submitted.

Related questions

0 votes
1 answer

When creating a new user through the webinterface, the password is generated based on the template configured in the 'user pattern'. The domain password policy can also ... the webinterface and preventing the 'password not required' AD attribute being set.)

asked Jan 6 by maarten.vaes (140 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, 2024 by tromanko (330 points)
0 votes
1 answer

I'd like to limit users from being able to login to the Web interface. In other words, if a user opens multiple browsers or tabs, can I prevent them from being able to login to each tab/browser and starting multiple sessions? Thanks!

asked Apr 10, 2024 by cewilson (300 points)
0 votes
1 answer

I added a chart based on report "soon-to-expire passwords" to the homepage. In Adaxes console, it will show a chart with time/date of when the password will expire. In the ... the report in web interface, it will show data but the chart will still be blank.

asked Mar 20, 2024 by tromanko (330 points)
0 votes
1 answer

What I'm trying to accomplish: user should have access to modify certain accounts where customTextAttribute2="test" (example). When I modify the criteria under "object selection" ... to query custom attributes or do you have to use AD attributes for this?

asked Mar 19, 2024 by tromanko (330 points)
3,677 questions
3,361 answers
8,494 comments
549,308 users