Skip to content

Conversation

@divya-akula
Copy link
Contributor

This PR introduces a PowerShell script named Export-M365ActiveUsers.ps1 that automates the export of Microsoft 365 user details into a CSV file using the Microsoft Graph API.

The script ensures the Microsoft.Graph module is installed, connects securely using browser or device-code authentication, and retrieves user details such as Display Name, UPN, Department, Job Title, and Manager Email.

It is designed to work seamlessly across macOS, Linux, and Windows, with platform-specific considerations for authentication cache permissions on macOS.

@pkbullock pkbullock merged commit a048157 into pnp:main Nov 19, 2025
@pkbullock
Copy link
Collaborator

Hiya @divya-akula, sorry for the delay in processing this, thank you for this awesome sample and sharing with the community. This will be live shortly. 🎉🥳

@divya-akula
Copy link
Contributor Author

Thanks a lot @pkbullock , please dont be sorry , it was quick, thank you

@divya-akula divya-akula deleted the GetGraphUsers branch November 20, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants