Forum Discussion

Amine_ZEMZEMI's avatar
Amine_ZEMZEMI
Copper Contributor
Sep 04, 2019

Use impersonation in SPFX Webpart

Hi,

 

I have sharepoint team site with a list that have custom permissions.

I want to develop a WebPart SPFx that shows list items from my list for user who didn't have permissions.

I saw that we can create secured AAD function that let impersonation.

Could you explain process please ? How it does works ?

 

Thank you.

  • What you can create is an Azure Function and then secure it through Azure AD. In this Azure Function you have to write the code to return all the list items using OAuth behind the scenes (ClientID, ClientSecret
    • Amine_ZEMZEMI's avatar
      Amine_ZEMZEMI
      Copper Contributor

      Thank you for your response.

      What are the permissions applied on Azure Function ?

      Do you have an example ?

Resources