Use below SQL query to List User-ID and controlled devices.
Tables used.
Device – This table contains device-level information like IP Phones and gateways.
Enduser – This table contains information about all Enduser in CUCM.
Enduserdevicemap – This table contains the mapping between data in Enduser table and Device table.
Sql Queries.
run sql select enduser.userid, device.name from enduser, enduserdevicemap,device where enduserdevicemap.fkdevice = device.pkid and enduserdevicemap.fkenduser = enduser.pkid order by enduser.userid
