I'm having a hard time to accomplish the below.
I have small app empowering the users to query user profile properties (SharePoint Online). I'm using CSOM which is quite straight forward.
I can pull the user's profile properties. But CSOM only returns the properties Key/Value pairs. The key is the Internal Name and not the Display name (External User) that user usually see from the UI.
The users of this app can query the profile property by the External name, i.e. they can key in "First Name" instead of "FirstName" or "Job Title" instead of "SPS-JobTitle".
As workaround, I have made soap request to /_vti_bin/UserProfileService.asmx
which it returns all the user properties (Display Name, Internal Name) and from there I have some line of codes to match Internal name with its display name.
Unfortunately, I'm using OAuth2.0 authentication (Azure AD app)
which /_vti_bin/UserProfileService.asmx
does not support but CSOM supports.
Please guide me how can I user's profile property External names (Display name) with its value?
I hope my question clear enough.