question

AbhaSharma-1093 avatar image
0 Votes"
AbhaSharma-1093 asked MichaelHan-MSFT commented

How to create Context For logged in user if Provider Hosted add-in using App Only Authorization Policy in SharePoint 2019

Hi,

Can anyone suggest How to create Context For logged in user if Provider Hosted add-in ,using App Only Authorization Policy in SharePoint 2019.

I have following requirement:

  1. Need to fetch data from SP list for logged in User but Provider Hosted Add-in using 'App Only' policy

Thanks.

sharepoint-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered MichaelHan-MSFT commented

Hi @AbhaSharma-1093,

No, this is not avilable in add-in usinng app only policy.

When the add-in-only policy is used, SharePoint checks only the permissions of the add-in principal. Authorization checks succeed only if the current add-in has sufficient permissions to perform the action in question, regardless of the permissions of the current user (if any).

Please check this article for more: https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/add-in-authorization-policy-types-in-sharepoint#overview-of-add-in-authorization-policy-types



If an Answer is helpful, please click "Accept Answer" and upvote it.
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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AbhaSharma-1093,

Is there anything update on your issue? I'm willing to hear form you:)



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.



0 Votes 0 ·