1

I am rather new to this place I would like to ask a question about CSOM. I'd like to set unique permissions for a particular folder in a particular document, then I found the following URL on the internet.

SharePoint Online CSOM PowerShell Script to create folders and add permissions

After referring to and executing the inside command, the following error occurred.

ERROR: Exception calling "ExecuteQuery" with "0" argument(s): "Cannot add a role assignment with empty role definition binding collection."

enter image description here

How can I resolve the above error?

  • 1
    Did you check your user and userrole variable aren't null? This error seems to be with empty role. – Pradip R. Jul 2 '17 at 18:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.