Forum Discussion

Ashish Jain's avatar
Ashish Jain
Copper Contributor
Sep 10, 2017

Unable to call graph API from SharePoint page

I am trying to call the graph API for fetching user profile information.

The blog post I followed is http://julieturner.net/2017/01/extending-sharepoint-with-adal-and-the-microsoft-graph-api-part-1-the-setup/

My AAD app config is like:

  1. URL: https://tenant.sharepoint.com/
  2. Reply-url: https://tenant.sharepoint.com/

Permissions: Graph API :: Read all users' full profiles

However, I am getting an error of invalid reply url. Not sure what reply url is it trying to send the response to.

3 Replies

    • Ashish Jain's avatar
      Ashish Jain
      Copper Contributor

      Do you mean you are getting an error? If so, what is the error?

  • Ashish Jain's avatar
    Ashish Jain
    Copper Contributor

    I was able to resolve this issue. So basically the issue was with the reply url wherein the Azure AD was trying to send the token back to 

     

    https://tenant.sharepoint.com/sites/mysite/SiteAssets/ADALTest.aspx

     

    and my reply-url's did not have that entry. I had only entered either my tenant url or sie collection url. Added the same and now works smoothly.

Resources