PGV UPN Prefix

Guys.

I have a PGV for the UPN Prefix which is based off the format below. 

%<givenName>.%<sn>

Now this works fine if someone is creating a user with a single last name.  Is there a way to reject the PGV if the UPN Prefix contains a space. For example if someone created an account where the last name was Test Team i would want to the UPN suffix to be rejected. 

Thanks in advance 

Parents Reply
  • Another way to tackle this is using a policy script that implements an onGetEffectivePolicy handler that basically continuously checks to see if a surname containing a space has been entered and then throws an error if a bad surname has been supplied.  Unfortunately, I don't believe you can generate the warning until the operator hits "next" on the page where they entered the surname.  You could also just have the script apply logic to get rid of the space in the UPN.  Unfortunatley, The UPN attribute is a somewhat tricky attribute to apply policy to because out-of-the-box, it's constructed from edsvaUPNPrefix and edsvaUPNSuffix.

    I may also be overthinking this.

Children