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 (215k 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
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

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
0 answers

We are unsure how to troubleshoot this error. It happens after a new user is created and then we modify the properties. The code is customized powershell running using a ... adaxes admin but still the same error. Any ideas where we could start to troubleshoot?

asked Apr 27 by mark.it.admin (2.0k points)
0 votes
1 answer

When viewing a group under "My managed objects" I can't see members of a group that are disabled. Is there a way to enable seeing disabled users? In the Administrators web interface I can see all the users properly (enabled and disabled).

asked Apr 21, 2021 by atnorman (120 points)
0 votes
1 answer

I enabled 2FA for common signing and it's applied to each portal. I am using separate account for testing purposes to see how changes affect for other users and for everyday ... possible? I am also wondering how to reset and/or remove 2FA from test account?

asked Dec 23, 2020 by juhota (130 points)
2,779 questions
2,512 answers
6,574 comments
26,281 users