Batching BreakRoleInheritance and RoleDefinition Updates #377
-
Hello all, I'm trying to execute the following code using nightly release 1.0.20, and although I execute the breakRoleInheritance batch synchronously, I still get an exception when I try to execute the batch that adds the roles/definitions. The exception states that the operation cannot be completed on an object that inherits permissions. As always, I appreciate your assistance! private async Task ChangeAllPermissions(List folders, List files, RoleDefinition permissions, PnPContext batchContext, string projectNumber)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Reversing the orders of the files' and folders' BreakRoleInheritance batches fixed the issue. Thank you! |
Beta Was this translation helpful? Give feedback.
Reversing the orders of the files' and folders' BreakRoleInheritance batches fixed the issue. Thank you!