Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Remote Event Receiver is not called when created with Add-PnPEventReceiver #581

Closed
1 of 6 tasks
ssandu opened this issue Apr 12, 2021 · 2 comments
Closed
1 of 6 tasks
Labels
bug Something isn't working no-issue-activity

Comments

@ssandu
Copy link

ssandu commented Apr 12, 2021

Reporting an Issue or Missing Feature

Remote Event Receiver web service is not called when created with Add-PnPEventReceiver and the event is happening.

Expected behavior

RER should call it's external url web service

Actual behavior

Seems like it doesn't have rights to web
From ULS logs
The app i:0i.t|ms.sp.ntv|31359c7f-bd7e-475c-86db-fdb8c937548e@9b3ac268-aeba-4a2b-94af-1f885116765a does not have required permission Manage on list 37a10755-2f51-42b1-871a-c888fefc89b1. SitePerm=None, WebPerm=None, ListPerm=None
Calling 'https://myurl/.....svc, i:0i.t|ms.sp.ntv|31359c7f-bd7e-475c-86db-fdb8c937548e@9b3ac268-aeba-4a2b-94af-1f885116765a' is not allowed because its app does not have the permission.
App with GUID 31359c7f-bd7e-475c-86db-fdb8c937548e is PnP Office 365 Management Shell

Steps to reproduce behavior

Connect-PnPOnline https://{tenant}.sharepoint.com/sites/eventreceivers
Add-PnPEventReceiver -Name "TestEventReceiver" -Url "https://{url}/testold.svc" -List "testevent" -EventReceiverType ItemUpdated -Synchronization Asynchronous -SequenceNumber 10001
Set-PnPListItem -List "testevent" -Identity 1 -Values @{"Title" = "test3"}

What is the version of the Cmdlet module you are running?

1.5.0

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify
@ssandu ssandu added the bug Something isn't working label Apr 12, 2021
@LeopoldLerch
Copy link

Same like #464

Seems to be an issue from Microsoft confusing AAD-registered apps with delegated permissions with Provider-hosted-add-ins. Short story, if you use for the registration a Token with an appId in it (what a token usually has, at least in v1-Version), that appId ist stored together with the registered RER. When executing, Sharepoint seems to lookup that appid in it´s Sharepoint-Principals used for Provder-hosted-Addins with Application Permissions. However there is none of course, and even if there is one, the Host of that registered App will most likely not correspond with the domain of your RER.

Please make an Issue at MS. They say I am the only one that has this issue. However, prepare for a long run, as they will close the issue as soon as they hear "PnP", telling you that it is a issue from PnP (which isn´t).

@github-actions
Copy link

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity
Projects
None yet
Development

No branches or pull requests

2 participants