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 Mar 27, 2023 by gwadmin (80 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
0 answers

This issue affects only Adaxes versions that use the Exchange Online Management (EXO v3) PowerShell module: Adaxes 2023.2 - all versions Adaxes 2023 - starting from version 3.15. ... . For more details, see how to Register Adaxes as an app in Microsoft Azure.

asked Jun 23, 2023 by Adaxes (550 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 (80 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)
3,326 questions
3,025 answers
7,724 comments
544,677 users