Forum Discussion
Susan Chueh
Mar 21, 2017Copper Contributor
When will Microsoft Graph API for SharePoint officially roll out?
When will Microsoft Graph API for SharePoint officially roll out? Specifially to the enumerates sites in an organization. According to the api referencce release, currently, the beta version onl...
Kiril Iliev
Mar 27, 2017Brass Contributor
Susan, probably, you can tackle this differently. You mentioned that you already have a JAVA application which leverages on the Graph API - so you probably are using an app principle registered in Azure AD.
What you could do, is to provide full access on tenant level for SharePoint (one way is to provide the XML in https://yourtenant-admin.sharepoint.com/_layouts/15/appinv.aspx):
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" />
</AppPermissionRequests>
Then you can use CSOM (or even PnP helper methods) to call for all site collections in the tenant - probably, you'd need a C#-based service.
If C# is not an option, then PowerShell will be your friend - you can leverage on Azure Functions to call your PowerShell as an HTTP-end point to get all your site collections for you (to confirm for you - we already have C#-based code which does that).
Hope this helps
What you could do, is to provide full access on tenant level for SharePoint (one way is to provide the XML in https://yourtenant-admin.sharepoint.com/_layouts/15/appinv.aspx):
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" />
</AppPermissionRequests>
Then you can use CSOM (or even PnP helper methods) to call for all site collections in the tenant - probably, you'd need a C#-based service.
If C# is not an option, then PowerShell will be your friend - you can leverage on Azure Functions to call your PowerShell as an HTTP-end point to get all your site collections for you (to confirm for you - we already have C#-based code which does that).
Hope this helps
Susan Chueh
Mar 30, 2017Copper Contributor
Thanks Kiril!
We thought about using Azure AD, but that's a long haul for us. With CSOM being for Windows SDK, it is difficult to turn that into JAVA applications. We were hoping to get some update info for a direct route using Graph API as to its respective timeline and so forth. We will look into PowerShell though. Thanks
We thought about using Azure AD, but that's a long haul for us. With CSOM being for Windows SDK, it is difficult to turn that into JAVA applications. We were hoping to get some update info for a direct route using Graph API as to its respective timeline and so forth. We will look into PowerShell though. Thanks