What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
SharePoint CSOM
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
Additional environment details
Issue description
We have multiple sites, where we created Remote Event Receivers using CSOM. Something basic like this:
_receivers.ApplyEventReceivers(context.Web);
await context.ExecuteQueryAsync();
All the receivers are in place.
Some of the event receivers stopped working and no longer calling the url we provided (same url for all receivers). We found on other blogs that we have to recreate the list (not applicable) or remove and re add the receivers.
Unfortunately, we are getting System.UnauthorizedAccessException when we try to remove the event receivers.
We tried using CSOM, PnP PowerShell, calling the built in rest endpoint from browser, from JS and also from Power Automate.
We tried with different users with full control and site collection admin roles. We also tried with CilentId - ClientSecret that has full control, but no luck.
Can anyone please provide a solution to remove these Event Receivers?
Many thanks!
What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
SharePoint CSOM
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
Additional environment details
-https://contoso.sharepoint.com/sites/pwa/projectcode/_api/web/lists/getByTitle('List Name')/eventreceivers('receiver-id')/deleteobject
Issue description
We have multiple sites, where we created Remote Event Receivers using CSOM. Something basic like this:
_receivers.ApplyEventReceivers(context.Web);
await context.ExecuteQueryAsync();
All the receivers are in place.
Some of the event receivers stopped working and no longer calling the url we provided (same url for all receivers). We found on other blogs that we have to recreate the list (not applicable) or remove and re add the receivers.
Unfortunately, we are getting System.UnauthorizedAccessException when we try to remove the event receivers.
We tried using CSOM, PnP PowerShell, calling the built in rest endpoint from browser, from JS and also from Power Automate.
We tried with different users with full control and site collection admin roles. We also tried with CilentId - ClientSecret that has full control, but no luck.
Can anyone please provide a solution to remove these Event Receivers?
Many thanks!