0

Do you have an idea how to share a folder with a list of users(list of emails) using Sharepoint Rest Api from a java application? Thanks.

1 Answer 1

0

_api/SP.Web.CreateOrganizationSharingLink could generate share link in orgnization(no specific users).

enter image description here

If you want to specify the user, you could use below endpoint to assign permission to folder directly.

/_api/web/GetFolderByServerRelativeUrl('/sites/lee/MyDoc/subfolder')/ListItemAllFields/roleassignments/addroleassignment(principalid=13,roleDefId=1073741830)
1
  • Thanks so to share a folder with users i should make two steps: generating a sharing link then adding permissions. I can't do this in one call? for the users i have only their emails.
    – Safa KH
    Commented May 19, 2020 at 13:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.