Setting CSP Admin User’s Password to Never Expire

Configure your CSP account:

  1. Log on to the Office 365 Application Endpoint Host as Administrator.
  2. In the Start menu, click Microsoft Online Services Module for Windows PowerShell.
  3. Run the Connect-MsolService command.
  4. In the Windows PowerShell Credential Request window that opens, type the login and password of the created admin user oa_account@<partnersubdomain>.onmicrosoft.com (for Microsoft Cloud), oa_account@<partnersubdomain>.onmicrosoft.de (for Microsoft Cloud Germany), or oa_account@<partnersubdomain>.partner.onmschina.cn (for Office 365 operated by 21Vianet in China). Click OK.
  5. Run the following command to set the password of the admin user to never expire:

    Microsoft Cloud

    Set-MsolUser -UserPrincipalName oa_account@<partnersubdomain>.onmicrosoft.com -PasswordNeverExpires $true

    Microsoft Cloud Germany

    Set-MsolUser -UserPrincipalName oa_account@<partnersubdomain>.onmicrosoft.de -PasswordNeverExpires $true

    Office 365 operated by 21Vianet in China

    Set-MsolUser -UserPrincipalName oa_account@<partnersubdomain>.partner.onmschina.cn -PasswordNeverExpires $true

Important: If your security policies do not allow you to set passwords to never expire, you must regularly set a new admin user password in the Microsoft cloud and the global settings of the application instance before the old admin user password expires.