How can I connect sharepoint rest api from APIM?

thunder12 41 Reputation points
2022-02-08T22:59:09.67+00:00

I am exploring a ways to connect to SharePoint rest api from Azure api management. How do I setup oauth to authenticate the apim instance to execute the rest calls? I appreciate any input or guides.

Thanks.

@MughundhanRaveendran-MSFT

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,446 questions
Microsoft 365 and Office SharePoint Development
Microsoft 365 and Office SharePoint For business Windows
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-02-09T10:58:17.747+00:00

    @thunder12 APIM does provide Send Request policy which you can leverage in your inbound policy along with the C# expression to initiate any request before calling your backend services.
    This article has the details of how you can Access Token Acquisition, Caching, and Renewal within your policy. To build the SharePoint online token you can refer to this discussion on what URL endpoint call you to need to initiate and accordingly update your policy as per your requirement.

    To get more familiar with the SharePoint REST services you can refer to this document.

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2022-02-09T05:32:16.213+00:00

    Hi @thunder12 ,
    Per my research, I found following document might help you. You can take a reference.
    https://learn.microsoft.com/en-us/rest/api/apimanagement/ApiManagementREST/api-management-REST


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.