Hi Guys,
I have a sharepoint hosted app. In the application i have facing an issue in retrieving user profile properties using rest api call in javascript. Got an unauthorized exception while accessing the api. try to resolve this issue by provide a tenant read permission to application and then deploy the application , there is a deploy request has been send to the tenant admin , i have the tenant admin access and i approved the deployment request but nothing happens. Could anyone help me what is the best method to get the user profile from sharepoint online.
I have tried javascript object model to retrieve the user data. there also i got the same issue .(below given the link)



