Skip to content
This Python script is used to interact with the Microsoft Graph and uses AWS KMS and S3 for credential and data storage
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Create .gitignore Jun 17, 2019
LICENSE reorganizing repo Jun 17, 2019
README.md Update README.md Jun 17, 2019
awsintegration.py reorganizing repo Jun 17, 2019
graphapi.py reorganizing repo Jun 17, 2019
main.py reorganizing repo Jun 17, 2019
sample_parameters.json reorganizing repo Jun 17, 2019

README.md

Microsoft Graph Query

This Python script is used to interact with the Microsoft Graph service and provides integration with Amazon Web Services services for credential and data storage.

What problem does this solve?

The script demonstrates how services from multiple public clouds can be strung together to formulate a solution to effieciently and securely pull data from an API. This example uses Python to pull data from the Microsoft Graph API and stores it in Amazon S3 storage. The credentials used to interact with the Microsoft Graph are stored securely in AWS KMS.

Requirements

Setup

Clone the repository.

Prior to running the script you will need to create the Azure Active Directory security principal that the script will use. The script uses the OAuth Client Credentials Grant Flow to acquire a OAuth token to access the Microsoft Graph. The security principal needs to be granted the appropriate permissions to access the resources you wish to pull information for.

The script keeps a log file of its activities in a file named msapiquery.log which is stored in the directory the script is executed from. The log file can be used to track the scripts activities and for debugging any errors.

The results of the query are written to text file which is written to an S3 bucket.

Execution

A sample parameters file is included.

You can’t perform that action at this time.