Forum Discussion

DanielNiccoli's avatar
DanielNiccoli
Steel Contributor
Jul 15, 2019

How to authenticate a script without user interaction?

Hi,

 

I want to get started with the Graph API. I am interested in automation, so all the 'Getting Started' documentation is not helpful, because it relies on user interaction during the authentication.

 

I registered an app and granted it the User.Read.All API permission (type:application) and I created a client secret / application password.

 

Now I'm stuck. Does anybody have a sample Python script that authenticates? And maybe even gets a list of users?

 

Resources