Forum Discussion

Daniel Reis's avatar
Daniel Reis
Copper Contributor
Aug 09, 2022

Show a list of available SharePoint sites for onboarding

I'm working on an onboarding application where I would like to have an option to list all current active sites on the tenant so the manager can choose which access the new starter needs. Any ideas?

2 Replies

  • Bharath Arja's avatar
    Bharath Arja
    Iron Contributor

    Daniel Reis You can make use of Graph API call to list all sites in SharePoint https://docs.microsoft.com/en-us/graph/api/site-list?view=graph-rest-1.0 

    You can take this approach depending on your where it comes into play in your overall onboarding process. If you are developing a custom app, call this Graph API to list all sites. If you just want a spot to display all sites, build an single page call to list them.

    • Daniel Reis's avatar
      Daniel Reis
      Copper Contributor
      Hi Bharath,
      Thanks for this! I will investigate and try it out. Because I need to present this to them as a form of "choice" I might need to call the GraphAPI to update a list and present this list as a "choice" option. Will see if that works.
      Appreciated.
      D.

Resources