Then you have an issue. The system does not display that information to Users and actually obfuscates it on purpose.
You are likely getting the department ID and would then have to look up the name in the ost_department table with something like:
SELECT name FROM ost_department WHERE id=#