Retrieve SharePoint Online Root Site Collections list using CSOM lib or REST API without admin creds

Anonymous
2016-09-14T14:04:16+00:00

Hi All,

I'm trying to solve simple task : To retrieve root site collections list automatically.

I know the easy way to do it using admin credentials and C# CSOM library, but it would be much better to use something like admin-consent (Graph API) flow to authomatically retrieve it.

I already have admin-consent functionality and I'm able to get SP server URL (like OneDrive item's property).

I'm sure there must be a way to do it but not sure it is implemented by MS dev teams yet :))

Please help me guys!

Denis

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2016-09-14T19:36:14+00:00

    Hi Denis,

    Glad that you have found a solution and we appreciate your sharing. This will definitely benefit other community members who have the same requirement.

    Regarding your questions about this, as it is related to SharePoint development, and I notice that you have post the question in our MSDN forum. We would suggest you continue monitor the thread in our MSDN forum as that forum is a specific support channel for SharePoint development related queries. The engineers and members there might provide you with professional support about your requirement.

    Thanks for your understanding.

    Allan

    Was this answer helpful?

    0 comments No comments
  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more