https://github.com/chgeuer/ms_graph_api_org_user_pics
Short Livebook demo for retrieving hi-res images for a team from MS Graph API
https://github.com/chgeuer/ms_graph_api_org_user_pics
elixir livebook microsoft-graph-api
Last synced: about 1 year ago
JSON representation
Short Livebook demo for retrieving hi-res images for a team from MS Graph API
- Host: GitHub
- URL: https://github.com/chgeuer/ms_graph_api_org_user_pics
- Owner: chgeuer
- License: apache-2.0
- Created: 2024-09-18T07:38:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-19T12:54:09.000Z (over 1 year ago)
- Last Synced: 2025-01-17T06:26:16.388Z (about 1 year ago)
- Topics: elixir, livebook, microsoft-graph-api
- Language: Elixir
- Homepage:
- Size: 142 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MsGraphApiOrgUserPics
> This is an Elixir LiveBook-based demo on how to retrieve high-resolution user profile pictures for a team from Microsoft Graph API.
## Usage
This demo is supposed to be run using a local Livebook.
1. **Install Livebook** on your Windows machine
1. By downloading the installer from https://livebook.dev/#install (Click the Windows logo)
2. Running the `LivebookInstall-latest-windows-x86_64.exe` from your `Downloads` directory
2. **Start Livebook on Windows**.
1. Usually, an Edge web browser window should pop up (pointing to something like `http://localhost:52607/?token=.......`)
2. If you don't see a web browser window, click on the system tray (lower right corner and look for the pink book), right-click and say 'Open'
3. In the Livebook app, click the "Open" button, and select "From URL", and paste `https://github.com/chgeuer/ms_graph_api_org_user_pics/blob/main/demo.livemd` into the "Notebook URL"

4. After opening the notebook from the URL, you should see this...

5. Navigate to [Microsoft Graph Explorer](https://developer.microsoft.com/en-us/graph/graph-explorer) and copy the `access_token` into the clipboard.

Click "Evaluate" on the cell below, and paste the access token into the text field.
Also enter the org manager's e-mail into the other text box.
> [!IMPORTANT]
> NEVER share your access token with any external party!!
Now you should be ready to go...