PDA

View Full Version : Office 365 Online Service Connection error



EHacking
06-11-2018, 03:06 PM
Has anyone successfully set up a connection to their Office 365 Online Service? We have attempted without success. We get the following error: System.Exception: Authentication Error: Bad username or password. But the User Name and Password works fine in Office 365. We followed the instructions to set it up, and even reluctantly gave the ID the global admin role. But we get this error during the first part of the import. See attached log file.

cgrinton
06-11-2018, 07:18 PM
The log is suggesting that some error ("(500) Internal Server Error") is occurring on the Office 365 server when logging in. I wouldn't assume that this is really a bad username or password.

You could try running the following commands in PowerShell to troubleshoot further--if this doesn't work, maybe contact Microsoft for help.


$c = Get-Credential
Connect-MsolService -Credential $c
$users = Get-MsolUser -All

NB. If you do this in a PowerShell window on the FlexNet beacon then the prerequisite Office 365 PowerShell modules for running this should be installed.

jasonlu
07-29-2018, 07:53 PM
We've had a lot of trouble with the O365 connector. Once the rights and the firewalls are sorted out, the connection itself is flakey.
For one customer maybe two times every week it fails.
This means that the reconcile process (using the default scheduled task) also fails.
The solution there is to separate each data source into a separate scheduled task, so for example the O365 scheduled task is as follows:
"D:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\BatchProcessTask.exe" run InventoryImportReaders ---s """Office 365"""

The final scheduled task has the chainwriters parameter, which kicks off the reconcile.
"D:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\BatchProcessTask.exe"run InventoryImportReaders -p "ChainWritersMessage=true" ---s """FlexNet Manager Suite"""


This means that each data source could fail independently, but the reconcile would still run.


j

wernerb
10-18-2018, 02:26 AM
Hi, I have done a few, need to make sure that MFA is not enabled on our account that is connecting with O365