SharePoint API Doesn't Return All Available Sites

Jay Rennemeyer 0 Reputation points
2024-10-22T14:54:43.4+00:00

I found previous answers for this but they either said it was being addressed in a release back in February, or they just didn't solve the issue.

I have a SharePoint site called 'NetSuite BluDocs' in which there is a group called 'NetSuite BluDocs Members'. The folders within the 'NetSuite BluDocs' site are displayed in an implementation of Oracle's NetSuite using a third-party Suitelet called 'bluDocs'. All users must authenticate their bluDocs, which just asks SharePoint for a user-specific key.

When a user opens a project in NetSuite, the bluDocs section will establish a connection to SharePoint using the key, then will retrieve a list of sites that the user is allowed to look at (using https://graph.microsoft.com/v1.0/sites?search=). Every user is in the 'NetSuite BluDocs Members' group, which is an 'Edit' group. However, the 'sites' API is NOT returning the name/URL info for 'NetSuite BluDocs' in the JSON for a handful of users even though it returns every other site the user has access to.

Note that every user can go to the actual SharePoint site and see everything they need to see. The problem within NetSuite is caused by the 'sites' API not returning the 'NetSuite BluDocs' site.

If our users are all in the 'NetSuite BluDocs Members' group for the 'NetSuite BluDocs' site, what would prevent the 'sites' API from returning the 'NetSuite BluDocs' site information for a handful of users when it works correctly for every other user?

Microsoft 365 and Office SharePoint Development
Microsoft 365 and Office SharePoint For business Windows
Microsoft Security Microsoft Graph
Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2024-10-23T02:54:06.5+00:00

    Hi @Jay Rennemeyer,

    As the search document site-search, you will need the following permission at least

    213336-ms-graph-search.png

    And you could try to use v1.0/sites/yourtenant.sharepoint.com:/sites/siteName:/ api to get the site.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.