Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/martinm85/users-drives-items-counter

Python script to count items in users drives
https://github.com/martinm85/users-drives-items-counter

Last synced: 25 days ago
JSON representation

Python script to count items in users drives

Awesome Lists containing this project

README

        

# users-drives-items-counter

The repo contains Python script that uses the Microsoft Graph Python SDK to count all items in all drives of all users in the organization.

## Prerequisites

Install python modules by **pip**:

```
pip install msgraph-sdk
pip install azure-identity
```

Register a new application in the [Azure portal](https://portal.azure.com/). Add and grant the Microsoft Graph API application permissions `Files.Read.All` and `User.Read.All`.

## Run the script

Run the script with the following command:

```
python files_count.py
```