Symptoms

During readCSPAccounts.py script execution the following error message appears for all tenants:

The following tenants were not processed because of errors:
Tenant xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx: 
The remote server returned an error: (400) Bad Request.

Cause

The issue is caused by expired or changed Administrator's password for connecting to Microsoft Online in the Office 365 instance settings.

Resolution

Please specify correct password in the Office 365 instance settings at OA > Services > Applications > Office 365 > Instances tab > Choose instance > Global settings tab > Administrator's password for connecting to Microsoft Online

Internal content