0 votes

Hi

I had followed the steps listed under the url: http://www.adaxes.com/tutorials_Simplif ... Script.htm to validate EmployeeID field, to check for "-". How come during the testing stage, the system still let me create the new user account even though I purposely entered "-" ?

by (20 points)

1 Answer

0 votes
by (216k points)

Hello,

If you used the script exactly as it is in the tutorial, then it works as designed and it should allow an Employee ID with an "-" character. On the contrary, it should not allow creating a user if the Employee ID does not contain the "-" character. Take a closer look at the following lines in the code:

if (**-not**($value.Contains("-")))  
{  
$Context.Cancel("employeeID is invalid.")  
 return;  
}
0

Hi,

Thanks. You are right on the statement. But now when I test again, employeeID with just number, I cannot see any error message. It will proceed to generate a request for approval. I only notice that this time round, it seem that the user account was not created even though I approve it. Normally, it will

0

Hello,

Can we take a look at your Business Rules that validate the Employee ID and send the operation for approval?

Related questions

0 votes
0 answers

Whether I try to run a script or manually run the commands to enroll users, users remain unenrolled. Example of a basic script: Import-Module ... ` -QuestionsAndAnswers @{$question1=$answer1;$question2=$answer2} -AdaxesService localhost Adaxes version 2021

asked 4 days ago by gwadmin (20 points)
0 votes
1 answer

The Advanced Search in the Domain Find(CTRL-F3) function allows you to select a custom Active Directory field(added by IT, not a windows default AD field). When you ... helpful to have a Contains, Does not Contain logical operator in the Find function. Thanks!

asked Oct 11, 2012 by mpaul (360 points)
0 votes
1 answer

Greetings. When I create the parameters to make a business rule that looks for users whose Email Proxy Adresses does not contain 'SMTP:%userPrincipalName%', it still generates profiles ... and primary SMTP address don't match. Version is 2023 How rule is set

asked Dec 19, 2022 by MShep (60 points)
0 votes
1 answer

We have some dynamic groups with roughly 1800 members. Get-AdmGroup returns the member property OK for small groups, but for these large groups it returns null ... by calling Get-AdmGroupMember for those groups? Thanks, Randy Lindsey Colorado Springs Utilities

asked Aug 1, 2013 by rlindsey (20 points)
0 votes
1 answer

We are currently looking for a self service portal and a google password sync. Will Adaxes allow this?

asked Jan 24 by brandon.activesports (20 points)
3,009 questions
2,727 answers
7,021 comments
218,420 users