Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Users/Properties/Me
<a class="clsStd" href="/techref/objectmodel/objects/users/index.htm">Users</a>.Me Property
Contains a User object identifying the local participant. This property is read-only.
VBScript Syntax
external.Users.Me
JavaScript Syntax
window.external.Users.Me;
Property Value
Returns a User object that identifies the local participant.
Example
To determine whether the local user initiated this conversation, test for the equivalency of Users.Inviter and Users.Me.
<script type="text/javascript"> <!-- if (window.external.users.inviter === window.external.users.me) { // I invited another user to this conversation. document.write("I am the Inviter."); } else { // I am the user who accepted the invitation. document.write("I am not the Inviter."); } </script> //-->
Remarks
Test for equivalence between Users.Me and Users.Inviter to see if the local user initiated the conversation. In JavaScript, the equivalence operator is three equal signs (===).
Displaying the user name is implicitly restricted because the Name property of the User object needs the PassportSiteID permission flag.