@frappe.whitelist()
def get_user_roles(arg=None):
 return frappe.get_roles(frappe.form_dict[u'uid'])

@ frappe . whitelist ( ) def get_user_roles ( arg = None ) : return frappe . get_roles ( frappe . form_dict [ u'uid' ] )
get roles for a user .