Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/User/Properties/PUID
<a class="clsStd" href="/techref/objectmodel/objects/user/index.htm">User</a>.PUID Property (Restricted)
Requires PassportSiteID permission. Contains a variant object with the Microsoft® .NET Passport Unique ID (PUID) of the user. This property is read-only and applies to the local user only.
VBScript Syntax
external.Users.Me.PUID
JavaScript Syntax
window.external.Users.Me.PUID
Property Value
Returns a variant object with the PUID of the user, as provided by the .NET Passport used to sign in.
Example
To print the PUID of the local user in the body of the document, write the value of Users.Me.PUID, as shown in the following script example:
<script type="JavaScript"> <!-- var myUsers = window.external.Users; var myLocalUser = myUsers.Me; // Write my Passport Unique ID (PUID) in the body of the document. document.write("Passport Unique ID " + myLocalUser.PUID); </script> //-->
Remarks
Use of this property is restricted by the PassportSiteID flag. An application that does not possess this flag is not able to read this information from MSN® Messenger. No error is thrown, and a blank value is returned.
Reading the PUID property of the remote user returns a blank value.