Please note that you cannot sync SharePoint document library to personal OneDrive on user’s behalf. You will need to log in as the user and then process the sync since it requires individual credentials.
In addition, we cannot pass credentials of Groups with OneDrive, the sync must happen on a user base.
Reference: Sync SharePoint and Teams files with your computer.
If an Answer is helpful, please click "Accept Answer" and upvote it.
**Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. **