I know I got this code to check for a unique email address from you guys, just can't find where
Import-Module Adaxes
if ($Context.IsPropertyModified("mail"))
{
$value = $Context.GetModifiedPropertyValue("mail");
if ((Get-AdmUser -filter 'mail -eq $value') -ne $NULL)
{
$Context.Cancel("Email address is already in use. Please verify that account is not being duplicated");
return;
}
}
Does get-AdmUser check through the multiple domains that are set up in Adaxes? When I run get-AdmUser via powershell with a filter on something that I know is in multiple domains, I only get one. If it only checks the one, is there a way to have it check all the targeted type of objects under Adaxes' purview?
Thanks again for the help!!!