bpozdena / OneDriveGUI

A simple GUI for OneDrive Linux client with multi-account support.
GNU General Public License v3.0
750 stars 34 forks source link

feature request: manual entry of SharePoint site #105

Closed jkt628 closed 1 year ago

jkt628 commented 1 year ago

while trying to add a SharePoint site to my OneDrive Business account logging caught this:

2023-05-02 08:11:35,658 [OneDriveGUI.py:1868][fn=run][INFO] - [GUI] Trying to get list of SharePoint Sites...
2023-05-02 08:11:35,662 [OneDriveGUI.py:2004][fn=read_sharepoint_sites][INFO] - [MaintenanceWorker][OneDrive] Using 'user' Config Dir: /home/user/.config/onedrive
2023-05-02 08:12:13,717 [OneDriveGUI.py:2009][fn=read_sharepoint_sites][ERROR] - @ERROR ERROR: SharePoint Site details not provided for: subsite

2023-05-02 08:12:13,717 [OneDriveGUI.py:2004][fn=read_sharepoint_sites][INFO] - [MaintenanceWorker][OneDrive] Using config option for Global Azure AD Endpoints
2023-05-02 08:12:13,717 [OneDriveGUI.py:2009][fn=read_sharepoint_sites][ERROR] - @ERROR ERROR: The SharePoint Site results returned from OneDrive API do not contain the required items to match. Please check your permissions with your site administrator.

2023-05-02 08:12:13,718 [OneDriveGUI.py:2004][fn=read_sharepoint_sites][INFO] - [MaintenanceWorker][OneDrive] Configuration file successfully loaded
2023-05-02 08:12:13,718 [OneDriveGUI.py:2009][fn=read_sharepoint_sites][ERROR] - @ERROR ERROR: Your site security settings is preventing the following details from being accessed: 'displayName' or 'id'

2023-05-02 08:12:13,718 [OneDriveGUI.py:2004][fn=read_sharepoint_sites][INFO] - [MaintenanceWorker][OneDrive] Using dry-run database copy for OneDrive API query
2023-05-02 08:12:13,718 [OneDriveGUI.py:2009][fn=read_sharepoint_sites][ERROR] - @ERROR ERROR: To debug this further, please increase verbosity (--verbose or --verbose --verbose) to provide further insight as to what details are actually being returned.

2023-05-02 08:12:13,718 [OneDriveGUI.py:2004][fn=read_sharepoint_sites][INFO] - [MaintenanceWorker][OneDrive] Checking Application Version ...
2023-05-02 08:13:25,577 [OneDriveGUI.py:2009][fn=read_sharepoint_sites][ERROR] - @ERROR ERROR: The requested SharePoint site could not be found. Please check it's name and your permissions to access the site.

i already know the name of the SharePoint site i want to add and am syncing it through systemd --user. please allow for manual configuration through the GUI.

abraunegg commented 1 year ago

@jkt628

i already know the name of the SharePoint site i want to add and am syncing it through systemd --user. please allow for manual configuration through the GUI.

You may know the name - but your SharePoint Security Settings is preventing you from accessing the required data via the OneDrive API - this has nothing to do with the OneDrive GUI application. As per your log output:

ERROR: Your site security settings is preventing the following details from being accessed: 'displayName' or 'id'

You need to fix your SharePoint Security Settings.