Troubleshooting connection to SharePoint Online
Summary: Cayosoft Administrator has the Enable Modern Authentication setting in the Microsoft 365 extension in the Microsoft 365 extension settings.
Due to current limitations in the Microsoft SharePoint module, when modern authentication is enabled, connecting to SharePoint Online service requires adding a registry subkey on the client computer to avoid connection issues. This key forces modern authentication when connecting to SharePoint Online.
This article contains instructions on how to add the registry subkey on the client computer to force modern authentication that will resolve the errors with connection to SharePoint Online.
Applies to: Cayosoft Administrator 7.1.0 or later
Typical Error Messages
NOTE: Note: The errors described below usually occur when the Connect to SharePoint Online service setting is set to Yes on the Microsoft 365 extension.
| Scenario | Issue | Requirements |
|---|---|---|
|
The OneDrive Properties web action always displays the error even if a user has a personal site. |
This user doesn't have a OneDrive site. |
Add a registry subkey to the client's computer. |
|
The Office 365 Users | OneDrive post creation tasks and New User | Office 365 OneDrive post creation tasks rules fail. |
Timed-out waiting for OneDrive personal site creation. |
|
Cayosoft Administrator Console reports the error. It cannot connect to the managed Microsoft 365 platform. |
|
|
The Conditional AccessPolicy that is applied to Office 365 Sharepoint Online application. | ||
Cayosoft Administrator Console reports the error. The product cannot not connect to one of the managed platforms. |
SharePoint Client-Side Object Model (CSOM) is not installed. |
1. Run the Prerequisites Check tool and ensure all Sharepoint components are installed. 2. Remove odd DLLs from GAC. |
| Web Portal reports error in Microsoft 365 web queries |
1. SharePoint Client-Side Object Model (CSOM) is not installed. or 2. The term 'Disconnect-SPOService' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. |
1. Run the Prerequisites Check tool and ensure all Sharepoint components are installed. 2. Remove odd DLLs from GAC. |
| Web Portal reports error in Microsoft 365 web queries |
'There is no service currently connected' error. |
Check firewall settings. |
Solutions
Add a registry subkey on the client's computer
You should add the registry subkey to
HKEY_CURRENT_USER. The Cayosoft Administrator Service should be running under the same account used by the currently logged-in user.
-
Get the current value to check if legacy authentication protocols are enabled:
-
Connect to Sharepoint Online using a global admin account. Use the
proper domain name, user log in and password:
$username = "username@domainname.onmicrosoft.com" $password = "Password" $cred = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $userName, $(convertto-securestring $Password -asplaintext -force) Connect-SPOService -Url https://domainname-admin.sharepoint.com -Credential $cred
-
Get the current state of legacy protocols:
Get-SPOTenant | fl LegacyAuthProtocolsEnabled
-
Connect to Sharepoint Online using a global admin account. Use the
proper domain name, user log in and password:
-
Disable legacy authentication protocols:
Set-SPOTenant -LegacyAuthProtocolsEnabled $false
- Add a registry subkey on the client computer to force modern authentication.
- For details please see this Microsoft Article: Can't force Modern Authentication when using Connect-SPOService cmdlet in SharePoint Online Management Shell - SharePoint | Microsoft Docs.
- Restart Cayosoft Administrator Service.
Run Prerequisites Check tool and ensure all Sharepoint components are installed
All details are described in this KB: Installing required Cayosoft Administrator components.
Remove odd DLLs from GAC
Sometimes Sharepoint DLLs are left in GAC after uninstalling the old SharePoint Online Management Shell MSI package. This causes errors in loading the new Sharepoint PowerShell module and working with its commands.
Perform the steps below to fix the issue:
1. Stop the Cayosoft Administrator Service.
2. In Programs and Features, ensure that the following Sharepoint components are not installed:
SharePoint Online Management Shell
Microsoft Sharepoint Client Components
If any of these components is displayed, then uninstall it.
3. Open the PowerShell ISE console and run the commands:
Uninstall-Module Microsoft.Online.Sharepoint.PowerShell
4. Open C:\Windows\Microsoft.NET\assembly\GAC_MSIL and remove folders: Microsoft.SharePoint.Client and Microsoft.SharePoint.Client.Runtime.
5. Install the required Sharepoint components as described in the following article: Installing required Cayosoft Administrator components
6. Start the Cayosoft Administrator Service.
Check firewall settings
- Check that URLs and ports required for the Sharepoint connection are opened: Cayosoft Administrator URLs and IP address ranges.
Comments
0 comments
Please sign in to leave a comment.