Query user 'role' or 'profile' from deluge script

Query user 'role' or 'profile' from deluge script

Greetings,
I'd like to search for a users' role as set by the "Users and Permissions" feature.  I understand that this is different from a Contacts (zoho.crm.getRecordById) query.  I need it to look up the manager or area that the user works in.