Sp-dev-fx-webparts: react-manage-profile-card-properties error

Created on 29 Sep 2020  路  5Comments  路  Source: pnp/sp-dev-fx-webparts

Sample (which sample are you having trouble with)

react-manage-profile-card-properties
React Manage Card Profiles Error

Authors

@joaojmendes

Expected or Desired Behavior

Webpart does not show up.

Observed Behavior

Error: Exception of type 'Microsoft.Fast.Profile.Core.Exception.ProfileAccessDeniedException' was thrown.

Environment Details (Development & Target environment)

SharePoint Online

Additional context

I was receiving a previous error about API permissions. Those have since been granted.

bug

All 5 comments

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

@hugoabernier can you add the help-wanted tag?

I was trying to replicate the issue but I can't figure out how to enable API permissions for the online workbench. Does this Web Part require a full installation in order to run?

[edit] I went for the full install (which now makes sense to me) and replicated the behavior. I got the API warning as expected and approved the two permission requests.. After granting API permissions, I am getting the same error as the OP. The error is 403, "code": "ErrorInsufficientPermissionsInAccessToken" when calling
https://graph.microsoft.com/beta/organization/.../profileCardProperties?$orderby=directoryPropertyName

@scottrayrader @PathToSharePoint Get the latest version of this webpart, it should be fixed in the new merge.

Tested and it works. This issue can be closed @hugoabernier

FixWorking

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luismanez picture luismanez  路  5Comments

Abiman194 picture Abiman194  路  4Comments

joshburns49 picture joshburns49  路  3Comments

fleagleman picture fleagleman  路  3Comments

floriemoulin picture floriemoulin  路  4Comments