You can make a glideajax from the client script. If you just have the employee user name, you may need to do a query to the sys_user_has_role to get the role. Below links can help you https://www.servicenow.com/community/developer-forum/best-way-to-c...