VB or C#. I need an app to retrieve MS365 information. Powershell api is a possibility. Script will be called by a php web service so no user interaction is possible.
1. run from command line.
* Example format: vbApp -c(command) -u(365GlobalAdminUser) -p(365pass)
3. No user interaction required.
2. Output results in json format to file.
3. Retrieve list of active office 365 users with last logon times.
4. Retrieve list of all 365 exchange mailbox rules