I would like to get a list of all users and their personal sites (mysites). (This is supposed to run on SharePoint Online from an app or a timer job.) I have tried all day but I can't get past the first step: i.e. to get all users in the tenancy. Anyone know how to?

2 Answers 2


I would try using Search REST API for this. The API can be used to query User Profiles and return the path to their My Site. You could even create a A-Z directory if you wanted. Very easy to do with search.


The following technet artcile should help - https://technet.microsoft.com/en-us/library/dn911464.aspx

  • 1
    Provide brief explanation of answer along with reference link to allow other users to understand the answer rather than opening the link each time. Commented Oct 26, 2016 at 5:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.