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

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

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 by cewilson (190 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 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 by tromanko (330 points)
0 votes
1 answer

Is there a way to configure the module "Member of" in a "View user"-action as purely read only? As it stands now we are able to navigate to a seperate viewing page ... needs write-access to AD, we can't specify purely read-rights via the security role either.

asked Mar 8 by Handernye (100 points)
3,548 questions
3,239 answers
8,232 comments
547,814 users