Method for Limiting Sites Using "Sites.Selected"

Ren Higashida 20 Reputation points
2024-10-03T10:30:02.16+00:00

Background:

Currently, we are using the Graph API's "Search for sites" function to retrieve a list of SharePoint sites. Detailed documentation can be found here: Search for sites - Microsoft Graph.
In the future, we plan to implement site limitations using "Sites.Selected." However, the documentation for "Search for sites" mentions: "Note: This method does not support Sites.Selected
application permissions." Thus, it is our understanding that site limitations using "Sites.Selected" are not possible with "Search for sites."

Question:

We would like to know the necessary APIs to implement site limitations using "Sites.Selected." Please provide the following information:

  • An alternative method for retrieving a list of sites to replace the "Search for sites" (Graph API). Additionally, please explain the authentication method required to use the API. (Should we use the SharePoint REST API instead of the Graph API?)
  • The method/steps for applying site limitations. If there are multiple ways to do this, such as via API or web management interface, please describe all methods.
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,988 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,675 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,969 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,942 questions
0 comments No comments
{count} votes

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.