Forum Discussion
DanielNiccoli
Jul 15, 2019Iron Contributor
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 authentica...
Edward Koval
Jul 22, 2019Former Employee
Hi Daniel,
I would recommend reading the documentation Kevin suggested.
I wrote a small python script that may help you understand authentication, it was written with the Microsoft Graph Security API endpoint in mind. But the authentication should be the same and you can use the "make_request" method with the url "https://graph.microsoft.com/v1.0/users" to get all your users.
https://github.com/microsoftgraph/security-api-solutions/blob/master/QuickStarts/Python/Python_QuickStart.py
I would recommend reading the documentation Kevin suggested.
I wrote a small python script that may help you understand authentication, it was written with the Microsoft Graph Security API endpoint in mind. But the authentication should be the same and you can use the "make_request" method with the url "https://graph.microsoft.com/v1.0/users" to get all your users.
https://github.com/microsoftgraph/security-api-solutions/blob/master/QuickStarts/Python/Python_QuickStart.py