4.1.4.2.22 UserNameFromUPN

 procedure UserNameFromUPN(upn: unicodestring): unicodestring 

Parses and returns the user name from a UPN-formatted string upn. The user name is the component before the '@'. For example, when the input is "username@example.fabrikam.com", then "username" is returned. If the input is not in UPN format, then null is returned.

Show: