-
Notifications
You must be signed in to change notification settings - Fork 299
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
How to get SharePoint online site usage report using pnp/sp? #2684
Comments
You can extend some of the internal methods we have in the library to make your own calls against Graph. For Example
You can pass any URL into a GraphQuery object to create a new instance at the endpoint of your choosing. Just be aware there are lots of nuances with this endpoint in regard to permissions. Make sure you follow through that, as we are just a pass through to the Graph APIs, authentication issues will likely be caused by misconfigurations. https://learn.microsoft.com/en-us/graph/reportroot-authorization |
Thanks for the quick response. Please refer to the below screenshot of package.json file. Please refer to the below screenshots of main pnpconfig.ts file . Please refer to the below screenshots of main webpart.ts file . I have tried as you have suggested. Below is my code snippet,
I have faced some error. Please check below screenshots for the same. Also, I have posted the issue in the Microsoft Graph Support. Thanks |
Thanks. It looks like this may be a known issue. It looks like the token may not include the You may be able to add this Wids claim manually, but i'm not 100% sure. Unfortunately, this means we likely aren't able to help you and that you'll have to raise this up with Microsoft directly. |
Closing this issue as answered, and unfortunately not something we can solve within the library. If you have additional questions or we did not answer your question, please open a new issue, ref this issue, and provide any additional details available. Thank you! |
This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked. |
I have created SharePoint Framework Solution for custom development in the SharePoint Online.
I need to display SharePoint site usage report in my SPFx web part.
I have tried with @pnp/graph and @pnp/sp but I can not find any solution.
Can anyone help me with the same?
Thanks
The text was updated successfully, but these errors were encountered: