Part of it depends on whether the switch is also the L3 gateway for your devices. You generally need to correlate the L2 (physical port to mac address map) and L3 (IP address to mac address) information with the commands:
show mac address-table
show ip arp
Various products do this for you automatically and some integrate with Active Directory and/or Cisco Call Manager to give you additional info like username and phone number.