Get Sharepoint Online files with Azure Functions - azure

I'm trying to use Azure Functions to get Sharepoint files URLs in order to download them on a Portal.
I'm working on Dynamics 365 CRM and Portals, with an Online Sharepoint and an Azure account.
Could you help me finding how to access Sharepoint files through the Azure Functions ?
Thanks for your help.
Asconoid

I would personaly make use of the Sharepoint REST API's. Make sure to think about the security aspect of this kind of function, since you might be creating a huge security and trust issue if you decide to use a service principal to access those sharepoint documents without validation of the client who is calling the function.
Sharepoint REST API's

Related

Azure Cognitive Search Integration in SharePoint

Good day!
I just wanted some validation of my understanding that when we integrate Azure Cognitive Search in SharePoint, we cannot access the documents in the Azure, right? However, it is possible to navigate documents in the Office365 using ACS?
Basically, we can only index the files from SharePoint and can search the contents through Azure Portal using the Azure Cognitive Search?
This is what I have searched so far:
Index data from SharePoint document libraries: https://learn.microsoft.com/en-us/azure/search/search-howto-index-sharepoint-online
Not possible to extend SharePoint to Azure Blob using ACS: https://techcommunity.microsoft.com/t5/sharepoint/how-to-setup-sharepoint-site-to-use-azure-blob-storage/m-p/331761
Sorry, I am still new in this field (basically, first year college, and I do not have a mentor to ask this).
If you use Azure Search to Index Sharepoint data, these documents will be put in an Index inside the ACS service, you can then query this index that contains the documents by using not only the Azure portal, but any http client such as postman (querying through REST APIs) or any app accessing ACS through the available SDKs.See this
Search SDK for .NET https://learn.microsoft.com/en-us/azure/search/search-howto-dotnet-sdk
Searching documents through REST API https://learn.microsoft.com/en-us/rest/api/searchservice/search-documents

Azure Paas + SharePoint Online

Hi I am planning to move my SharePoint Application database from SharePoint List to SQL Azure. I am planning to create an API for that so I could Access my Data using Angular to that API. But I have a question is there a way to make sure that the API I will be create can and only be access inside my O365 SharePoint? Is there a way to build some kind of trust or authentication? What are the security features I could use to make my data safe
Yes there are bunch of security features like:
Securing APIs with key, JSON Web Token (JWT) validation, and IP filtering.
I think you could use IP Filtering for your scenario.

Can I use SharePoint Online user in SharePoint OnPremise?

I have a requirement to make a Single Sign-On between the SharePoint Online and SharePoint on-Premise. I have read some articles on google which shows the process of synching the On-Premise users to the SharePoint online and then use that user to login in to the SharePOint Online site.
But My Scenario is reverse, I want to sync the SharePoint online user into the SharePoint On-Premise. So that the user which is created in SharePoint Online sync in the Sharepoint On-premise and , that user can use the SharePoint On Premise Site.
Is it possible with the same process of Synch for the SharePoint Online and SharePoint On Premise? is it work reverse way too? or I need to do some other thing for that ?
Please advise?
Microsoft supports different types of SharePoint Server 2013 hybrid environments and the hybrid solutions. You can refer below link for the supported Hybrid Topology by SharePoint:
https://technet.microsoft.com/en-IN/library/dn607308.aspx
Using SharePoint Hybrid One-way Inbound Topology, you can setup connection requests from SharePoint Online to SharePoint On-Premise, But again it has some limitation and you can use this for below scenario only:
Inbound hybrid search (displaying search results from SharePoint Server 2013 in Office 365)
Hybrid Business Connectivity Services
Hybrid Duet Enterprise Online for Microsoft SharePoint and SAP
If you want to use SharePoint Online user as a logon credential for SharePoint On-Premise, then it's not supported yet.
For Inbound topology you will have to setup reverse proxy device, which will authenticate SharePoint Online requests to SharePoint On-Premise, but again for the authentication it uses federated users (Intranet User). You can refer to below links to get more familiar with concept and configuration of Hybrid Technology:
https://technet.microsoft.com/en-us/library/dn607304.aspx
https://technet.microsoft.com/en-in/library/dn607311.aspx#syncuserprofiles
https://technet.microsoft.com/en-in/library/dn607316.aspx
Hope these details will help you to understand that we can not use SharePoint Online user in SharePoint On-Premise environment.

Accessing the OneDrive for Business of several enterprises via a single application?

The application I'm working on allow users to import files from Google Drive and OneDrive. I would like to support OneDrive for Business but I'm not sure if this is possible.
From what I read, in order to use the OneDrive for Business API one needs to create an Azure application linked to a specific AD. Does that mean a third party application can only access the OneDrive of the users within the AD it was registered in? Would I have to create a different Azure application for each "enterprise"?
You can definitely create an app that users from multiple tenants can access. Here's a blog post explaining the differences between single and multi-tenant. You can also check out this code sample from Azure that demonstrates and walks you through a similar scenario.

How to do code-free Azure Storage Integration with SharePoint Online (Office 365)

Could you please help me on Azure and Office 365 Integration.
Requirement : Currently, I have a site which is developed in SharePoint Online 2013. Where we have a section for software, which are saved in a different server (FTP Sever). And we have added those FTP links in our page.
Example: which is hyper-linked with external FTP URL : ftp:///SoftwareName(it may be .zip, or .exe or any kind of setup file)
Whenever authorized person want to download the s/w, the user will be redirected to FTP.
We are facing slowness issue with our FTP server, so now we want to save those softwares in Azure Storage.
Please guide me which azure storage will be suitable for us?
How to upload software in Azure without writing a single line of code.
Can we use the Azure Storage as FTP server, where we can save/upload/delete/update the software
If user is logged in into SharePoint Online (Office 365), will Azure require the login again? while accessing/downloading the software, if we get all things(Azure and SharePoint Online) under one tenant.
The software download page which is created in SharePoint Online, is accessible by few user or groups. Can same group of user have login access to Azure to download the software? is it possible ? (Because in our existing environment, we have given FTP access to limited user, only they can download the s/w, when they access the link, it's asking for username and password).
Thanks in advance!
Kind Regards,
Virendra Kumar
Microsoft Azure offers multiple services, one of which is the Azure Storage. The Azure Store service is meant to be used by applications; not by end users directly. So there is no built-in interface for end users to login and interact with the storage environment. Because Azure Storage is a Platform as a Service (PaaS), you must write code to interact with it.
While there is a relationship between Microsoft Azure and Office365, the link is mostly for storing user credentials in the Azure Directory Services; but again, it's a service meant to be used by applications (Office365 is an application that consumes the Directory Service of Azure). You can't use these logins to access anything else in Azure.
Because there is a fundamental gap between what you are trying to achieve and what the Microsoft Azure platform offers, your questions are difficult to answer directly. There is no FTP service equivalent in Microsoft Azure at this time.
If you are ready to code your own webparts however, you might be able to implement this yourself, but it may require a significant effort. Here is a link to a blog post that talks about building custom webparts for Office365. If instead of reading from a list, as the blog post suggests, you read from an Azure Storage account, you would list your applications this way.

Resources