Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/martinm85/users-drives-items-counter
- Owner: MartinM85
- License: mit
- Created: 2024-09-14T14:58:38.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T16:42:04.000Z (about 2 months ago)
- Last Synced: 2024-09-15T02:31:56.959Z (about 2 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```