Thank you Ryan!
Just want to make a note here that following query worked for me.
|rest /services/authentication/current-context | search username!="splunk-system-user"
| eval user=username
| eval searchquery="SELECT * FROM PERSONS WHERE USERNAME='".user."'"
| map search="|dbxquery connection=dev_all_privs query=$searchquery$ shortnames=true| fields - _*"
... View more