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

Cannot see the approved graph api in Sharepoint Admin Center API Access Page

Open cookie9052 opened this issue 5 years ago • 15 comments

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

  • [ ] 💥 Internet Explorer
  • [ ] 💥 Microsoft Edge
  • [X] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx version
  • Node.js version
  • etc

Describe the bug / error

I have a spfx webpart package install in our sharepoint enviroment. And go to the Sharepoint Admin Site API Access Page to approve the Web Api Permission Requests. After approve them, it looks well. But when I refresh the page, or relogin, I can`t see the approved items anymore.

And I reimport the spfx package to the app catalog site. The approved items are shown in the Pending Request section.

Steps to reproduce

  1. Go to https://TENANT-admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/webApiPermissionManagement
  2. Click on a pending request and approve it
  3. Notice that the request has been visually approved and moved to the "Approved requests" group
  4. Refresh the page and can not see the approved apis anymore
  5. Upload the spfx package to the catalog site again
  6. Refresh the WebAPIPermissionManagement Page again
  7. The Approved API Items are shown in the Pending Request section

Expected behavior

Approved Graph API be shown in the Approved Request Section. And not shown in the Peding Request when I reupload the SPFx package

cookie9052 avatar Oct 06 '21 11:10 cookie9052

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Oct 06 '21 11:10 ghost

Yup - we've got a fix for this rolling over the next week or two. As a temp work around, you can go to the AAD portal and view the app directly. Thanks for posting.

patmill avatar Oct 07 '21 18:10 patmill

We believe the fix has reached 100% Production environment. Can you please check and see if the issue still remain?

lucabandMSFT avatar Oct 14 '21 00:10 lucabandMSFT

Thank you for your hard work but I`m sorry to say this issue still remain image image

cookie9052 avatar Oct 14 '21 14:10 cookie9052

I`m sorry to say this issue still remain

At 2021-10-14 08:29:19, "Luca Bandinelli" @.***> wrote:

We believe the fix has reached 100% Production environment. Can you please check and see if the issue still remain?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

cookie9052 avatar Oct 14 '21 14:10 cookie9052

In the api access page, could you please right click, view page source, and let us know what build number it is? it should display something like "buildNumber" : "odsp-web-main_20211014.001"

KeviCheng avatar Oct 14 '21 21:10 KeviCheng

@KeviCheng Hi KeviCheng, It is "buildNumber" : "odsp-web-prod_2021-09-24.002" in my tenant. Is it means that my tenant is not the latest version? Thanks!

cookie9052 avatar Oct 16 '21 07:10 cookie9052

I checked another tenant which buildNumber is odsp-prod_2021-10-08.002 and it looks like the issue is fixed. But in the Approved requests section, there are some duplicated requests. (I have approved them many times before cause these request will show in Pending requests after importing the spfx package). It makes me feel a little confused. WXWorkCapture_16343716278067

Thanks so much in advance for the help!

cookie9052 avatar Oct 16 '21 08:10 cookie9052

@cookie9052, thanks for reaching back. If possible, can you go to Azure Portal (https://portal.azure.com) as any user (you don't need to be an Admin for this) and look at the "Enterprise Applications" --> "SharePoint Online Client Extensibility Web Application Principal" and then under Security on the left rail click "permissions". I want to see if by any chances the same duplication is in AAD too or it's just reported by SharePoint Admin Center:

image

lucabandMSFT avatar Oct 18 '21 15:10 lucabandMSFT

@cookie9052 I believe the build odsp-web-prod_2021-09-24.002 did not contain the fix for the missing permission grants, but the your tenant admin page should have the fix now. Could you please check again, and if it still isnt fixed, could you let me know the version again?

Also, this fix should also address the issue of permission requests for already granted permissions. Let me know if you approved permission grants are populated again, but you still see the issue of permission requests for existing permission grants.

KeviCheng avatar Oct 18 '21 22:10 KeviCheng

Hi , @lucabandMSFT In Azure Portal WXWorkCapture_16346547714996

cookie9052 avatar Oct 19 '21 14:10 cookie9052

Hi, @KeviCheng Yes, the build odsp-web-prod_2021-09-24.002 did not contain the fix. Now I can see the approved permission grants. I upload a new version spfx package, there is no pending permission shown. It is correct now I think. But now I issue is there are some duplicate permssion grants in Approved requests section. Thanks again for yours great help!

cookie9052 avatar Oct 19 '21 15:10 cookie9052

@cookie9052 Thanks for the update. Could you please let me know what permission grants are duplicated and possibly a picture so I can see which grants they are? Do these reflect the ones in the Azure Portal?

KeviCheng avatar Oct 21 '21 23:10 KeviCheng

We have a couple of threads on this issue. I'm going to close this as a dupe of the previous one. #7348

patmill avatar Oct 26 '21 18:10 patmill

Closing this issue as a dupe. Please refer to our wiki for more details: Issue List Labels: status:duplicate

ghost avatar Oct 26 '21 18:10 ghost