Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 2

Search and/or the graph API to get the site information for the loggedin user

We are needing to get the following information from either search and/or the graph API using single API call. 

  • Get a list of all my sites I have access to
    • we are currently using search and the contentclassSmiley FrustratedTS_Site / STS_Web mechanics
  • Get a list of all my sites I am a member of (contributor access)
  • Get a list of all sites I am an owner
  • Get a list of sites I am a site collection admin
  • Get a list of sites I am a primary owner
    • We can do this with powershell – but can we somehow get access via search or graph?

                                         Get-SPOUser -Site https://example.sharepoint.com/sites/training | where {$_.IsSiteAdmin

  • Frequently accessed sites by me
  • Last accessed site by me

 

Note: Above information need to be retrieved from the overall list of 15k+ sites and shown in the O365 Page

1 Reply
Moderator
Message 2 of 2

Re: Search and/or the graph API to get the site information for the loggedin user

Hi @amalaraja,

 

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information.

 

As you’ll notice, your Topic is now in the Project Development Help and Advice board. No action is needed on your part; you can continue the conversation as normal here.

 

Let me know if you have any other questions or if I can help with anything else.

 

Cheers!