No one has responded to this discussion for at least a year, so this information may be out of date. If you're looking for information about this topic, please search for a more recent discussion or post a new question.

List of Site Collections programmatically

  • 1 Follower
  • 2 Replies |
  • This post has 1 verified answer |
Answered (Verified) This question is answered

Hello,

Does somebody knows how to get the list of SharePoint site collections programmatically? (The list we get through https:// mydomainname-admin.sharepoint.com/_layouts/online/SiteCollections.aspx)

Thanks,

David.

    0 out of 1 people found this post helpful.

  • Post Points: 20
Verified Answer
All Replies
  • I have not found any way to pull the list from Site Collection Manager.  I saw you were persuing this on another thread.  Were you able to get that to work?

    Client Object Model
    http://community.office365.com/enus/office365/f/88/p/624/2148.aspx#2148

    • Top 200 Contributor
    • Male
    • Post Points: 0
  • Hello,

    Thanks for the answer.

    Most probably there is no way to get the list of site collections programmatically. The GetContent function from the SiteData web service would do the job but unfortunately the admin account we have on the SharePoint Online doesn't have enough permissions to retrieve informations about the "VirtualServer" and "ContentDatabase" that would result in the list of site collections.

    Answering to your question related to the other thread, Yes I'm able to use both the Client Object Model and the Web Services whit the workaround. This is not a solution that I would use in production but for development it's fine.

    Regards,

    David.

    • Not Ranked
    • Male
    • Post Points: 0
Page 1 of 1 (3 items)