document library download using spfx

sweetu ve 286 Reputation points
2023-01-02T13:57:36.023+00:00

When user click any file from Sampletest document library then for each file access is managed and they would not be able to download unless they get approval from admin users

so my query here is for each file from respective folders user will send request to admin users and user would be able to download the file only if admin approve the request to download for each file as soon as approver approves then user can download the file

Kindly help

275462-image.png

275378-image.png

275463-image.png

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
{count} votes

Accepted answer
  1. Tong Zhang_MSFT 9,251 Reputation points
    2023-01-03T06:48:39.143+00:00

    Hi @sweetu ve ,

    According to my research and testing, unfortunately we cannot use SPFX to implement this feature, and we cannot manage download permissions for every file. Currently we can only use SharePoint access permissions. However, the read permission also includes downloading documents, so there is currently no way to achieve the function of obtaining the approval of the administrator and otherwise it will not be possible to download. Thank you for your understanding.

    More information for reference: User permissions and permission levels in SharePoint Server


    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.
    0 comments No comments

0 additional answers

Sort by: Most 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.