We are trying to connect to sharepoint 2013 on premise user profile apis from c# code deployed on azure web app. What is the best way of doing it.
Hi @Mudasar Syed,
You need to first decide which route you are going to take for connectivity. Make sure you keep a security on top priority since you are dealing with user profile service.
This article covers the very basics of different options available to you:
You can also expose the User profile service end point via https (reverse proxy) and filter incoming connections for certain IP address range.
As far as your API options are concerned you can always refer to this article from MSDN:
Let me know if this helps.