So I use
http://mysite.com/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(AccountName=@v,propertyName=%27empID%27)?@v='someaccountname'
This works fine for me as I have the correct AccountName for any user.
But what if I have property name EMPID =123456 (see image of xml below for properties) and I want to fetch other userprofile properties like EMPNAME (also in the image below).
something that looks like http://mysite.com/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(propertyName=%27empID%27@v)?@v='123456'
which would return 'firstnameofemployee' matching the EMPID=123456
Essentially not use AccountName but use other Userprofileproperties. Is there a way to do that? I have been looking for a solution but all I get is examples of api's with AccountName only. Which makes me wonder if there is no other way to do this.
If you would like to know xml with properties EMPID and EMPNAME