none
Accessing Office365 API's (like Mail and Calendar) without using OAuth2.0 RRS feed

  • Question

  • Hi,

    Is there a way to access the Office365 API's like Mail and Calendar data without creating a Application in Azure Active Directory. I am aware about the process of accessing the Mail and Calendar data by registering a application with all permissions and accessing it using OAuth2.0 process.

    Thanks in advance.

    Tuesday, February 6, 2018 11:38 AM

Answers

  • Hi,

    I don't think that it is possible to call API without identifying the apps itself in AAD. The app registration in AAD, creates apps identity that subsequently will be used to grant access to the app.

    I assume that you need to create app that will call graph without a user. In fact, there are two access mode in graph:

    1. Access on behalf of a user - https://developer.microsoft.com/en-us/graph/docs/concepts/auth_v2_user
    2. Access without a user - https://developer.microsoft.com/en-us/graph/docs/concepts/auth_v2_service 

    For any of both method, you will still need to create app registration in AAD so that the identity provider will be able to grant appropriate access. Using option no. #2, the app will be able to call graph API using its own identity.

    I hope it helps you finding the solution.


    Best regards,

    Riwut Libinuko
    SharePoint Architect, Singapore
    Office Servers and Services MVP | Singapore
    Blog : http://blog.libinuko.com

    • Marked as answer by Mani Rathnam Monday, March 12, 2018 2:17 PM
    Sunday, March 11, 2018 4:39 PM

All replies

  • Hi,

    I don't think that it is possible to call API without identifying the apps itself in AAD. The app registration in AAD, creates apps identity that subsequently will be used to grant access to the app.

    I assume that you need to create app that will call graph without a user. In fact, there are two access mode in graph:

    1. Access on behalf of a user - https://developer.microsoft.com/en-us/graph/docs/concepts/auth_v2_user
    2. Access without a user - https://developer.microsoft.com/en-us/graph/docs/concepts/auth_v2_service 

    For any of both method, you will still need to create app registration in AAD so that the identity provider will be able to grant appropriate access. Using option no. #2, the app will be able to call graph API using its own identity.

    I hope it helps you finding the solution.


    Best regards,

    Riwut Libinuko
    SharePoint Architect, Singapore
    Office Servers and Services MVP | Singapore
    Blog : http://blog.libinuko.com

    • Marked as answer by Mani Rathnam Monday, March 12, 2018 2:17 PM
    Sunday, March 11, 2018 4:39 PM
  • Hi Riwut,

    Thanks for the help. I am pretty new to Office365 and OAuth stuff. Finally, I have figured it out the way to connect to the Office365 API using OAuth authentication by configuring the App in the AAD. Now, I'm able to  access the data from Office365.

    Monday, March 12, 2018 2:16 PM
  • Thanks Riwut. Finally I'm able to access the data from Office365 using the OAuth2.0
    Tuesday, April 10, 2018 8:24 AM