Using microsoft graph api to download attachments in databricks - python

Can anyone please guide me how to download email attachments from shared service outlook account using microsoft graph api in azure Databricks

Related

How to connect to sharepoint from a python script after Microsoft deprecates basic authentication and forces MFA?

I currently have a script in python using shareplum library which connects to our sharepoint to upload a specific file periodically. Currenly it's authenticating via an app password.
Recently I just saw this Microsoft notice that they will disable basic authentication including app passwords and they will be forcing MFA from 03/31/2023.
I've been looking for alternatives to keep using this kind of automated scripts to work with sharepoint files but I couldn't find anything...
What do you suggest?

Copy files from linux to O365 sharepoint

Im my organisation, we are using two factor authentication for O365. I need to connect to sharepoint using python. Is there any way to connect it? And it need to bypass the two factor authentication
Create an Microsoft-Graph application in your company's azure and then connect to sharepoint using the application endpoint of microsoft graph and the given credentials.
This is a good package to use

Sharepoint OnPremise Integration with Azure

Is there any way to integrate SharePoint on premise with Azure ADF,though there is a SharePoint connector in azure ADF but its only work with SharePoint online.
Is there any other way around to download from SharePoint on premise using python or scala
Thanks
Just for now, Data Factory doesn't support on-premise SharePoint as the connector.
About your another question, we can't tell you there is or not, you must test it by yourself. One of the workarounds is that use the Azure databricks python notebook, I searched fount these documents may helpful: Connect your Azure Databricks workspace to your on-premises
network
There isn't an exist tutorial/example for you. The last thing is that you need to build/design the code logic/library to connect to your on-premise sharepoint.

Google drive python Script for Users-Credentials

I uploaded few files on Google-drive using my gmail account. Now my customers have to go to the drive and download those files. Files on the drive have read and write access and customers can download those files without gmail account.
I studied how i can automate this downloading process using Python. I found one wrapper PyDrive for Google-Drive Rest-api. For this API to work, i need to get credentials from the Google-Console.
I want to send that python script to user so that they can download the files but
Is it necessary to send the credientials also?
Users can't download the files without gmail account?
I can't just write a script and send to customers and they just run it without any credentials and gmail-account?

Is it possible to use SAS to connect to Microsoft Azure in Python?

Currently i am working on a project which submits data to the Microsoft Azure platform.
I'm using a service bus which contains various queues and subscriptions.
Since i am developing for the Raspberry Pi i decided to use the Azure SDK for Python found on GitHub.
To make sure not every device can delete messages i want to have some policies. Microsoft Azure supports Shared Access Signature Authentication (SAS) and Access Control Service (ACS).
Yet i haven't found a way to use SAS with the Python library.
I am fairly new to using Python so it could be that i am just looking over it, but some help or directions would be appreciated.

Categories