<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Get DisplayName of the logged user</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=6208703" />
  <subtitle>Get DisplayName of the logged user</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=6208703</id>
  <updated>2013-05-19T02:08:37Z</updated>
  <dc:date>2013-05-19T02:08:37Z</dc:date>
  <entry>
    <title>RE: Get DisplayName of the logged user</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=14769344" />
    <author>
      <name>Ruzel Jamilon</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=14769344</id>
    <updated>2013-04-29T20:28:50Z</updated>
    <published>2013-04-29T20:28:50Z</published>
    <summary type="html">Hello Filipe, were you able to get the display name for the connected user? Im trying to get the same results as you.</summary>
    <dc:creator>Ruzel Jamilon</dc:creator>
    <dc:date>2013-04-29T20:28:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Get DisplayName of the logged user</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6223410" />
    <author>
      <name>Ting-Hao Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6223410</id>
    <updated>2012-08-02T18:23:01Z</updated>
    <published>2012-08-02T18:23:01Z</published>
    <summary type="html">Filipe,
From the document, I think the connectedUser is the field from jabberwerx.Client class. It returns only jabberwerx.User. 
You can try jabberwerx.JID class where there is an object with the following properties: It will return the username of the jid.
{
            // REQUIRED: domain portion of JID
            domain: "hostname",
            // OPTIONAL: node portion of JID
            node: "username",
            // OPTIONAL: resource portion of JID
            resource: "resource",
            // OPTIONAL: "true" if the node is unescaped, and should
            // be translated via #.escapeNode
            unescaped: true|false
}

Howard</summary>
    <dc:creator>Ting-Hao Chen</dc:creator>
    <dc:date>2012-08-02T18:23:01Z</dc:date>
  </entry>
  <entry>
    <title>Get DisplayName of the logged user</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6208702" />
    <author>
      <name>Filipe Paredes</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6208702</id>
    <updated>2012-07-31T18:48:40Z</updated>
    <published>2012-07-31T18:48:40Z</published>
    <summary type="html">Hello,
The display name of my logged in user returns the userId!
Imagine i have two Jabber users:
UserID (JID): [url=mailto:JabberDude1@bla.com]JabberDude1@bla.com[/url]
Display Name: Jabber Dude One
UserID (JID): [url=mailto:JabberDude2@bla.com]JabberDude2[u][color=#0066cc]@bla.com[/color][/u]
Display Name: Jabber Dude Two[/url]
From the contacts list, if i login with JabberDude1, i can get the display name from JabberDude2. 
If i login with JabberDude2, i can get the display name from JabberDude1:
updateRosterItem: function (contact) {
    alert(contact.getDisplayName()); // it works ok, returning "Jabber Dude One" (when JabberDude2 is logged in)
}
But i can't get the logged user's displayname:
client.connectedUser.getDisplayName(); // it returns "JabberDude2" instead of "Jabber Dude Two"
 
Any reason why the connectedUser.getDisplayName() does not return de displayname?
Is there any other way to get the current logged in user's display name?
 
Thanks</summary>
    <dc:creator>Filipe Paredes</dc:creator>
    <dc:date>2012-07-31T18:48:40Z</dc:date>
  </entry>
</feed>

