Why do you have to re-approve SPFx package for MSGraph use?
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
- Build a SPFx package that has MSGraph access permissions in the package-solution.json
- Deploy the package to the app catalog
- approve in the admin page of your SharePoint tenant
- repeat steps 1-2
Submission Guidelines
Thanks for your contribution! Sharing is caring.
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.
@devinprejean - FYI I'm on the SPFX dev team at Microsoft.
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