sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Why do you have to re-approve SPFx package for MSGraph use?

Open devinprejean opened this issue 8 years ago • 3 comments

Category

  • [x] Question
  • [ ] Typo
  • [ ] Bug
  • [ ] Additional article idea

I have a SPFx package that I'm working on. Using the graph client in preview right now. When I replace the same package with the same package, or even a new "version" of the package by changing the number but not the permissions in the package-solution.json file I get another approval in the admin panel. My question, is why? If I have already approved the request before and no additional permissions are being requested why is this happening?

Lastly, if this is just how things are what does MSFT advise we do? re-approve it? reject it? revoke the old and approve the new?

I've already tried to just re-approve it and I get this error: An OAuth permission with the resource Microsoft Graph and scope User.ReadBasic.All already exists.

Expected or Desired Behavior

I expect there to be no new record to approve permissions for

Observed Behavior

Every time I deploy package a new record is created for approval even though one is already approved from a previous deployment.

Steps to Reproduce

  1. Build a SPFx package that has MSGraph access permissions in the package-solution.json
  2. Deploy the package to the app catalog
  3. approve in the admin page of your SharePoint tenant
  4. repeat steps 1-2

Submission Guidelines

Thanks for your contribution! Sharing is caring.

devinprejean avatar Jun 26 '18 20:06 devinprejean

This issue will be resolved by the time we release for GA. It is currently a preview feature and we are aware of the issue.

GrahamMcMynn avatar Jul 26 '18 18:07 GrahamMcMynn

@devinprejean - FYI I'm on the SPFX dev team at Microsoft.

GrahamMcMynn avatar Jul 26 '18 19:07 GrahamMcMynn

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 27 '20 06:01 msft-github-bot