Closed alainnaw closed 3 years ago
I suspect this may be because it's a /teams/ and not /sites/.
Hello @alainnaw
A couple notes/questions:
"
to the "globPattern"
propety.remoteFolders
property instead Can you try the following changes:
{
"sourceDirectory": "src",
"sharePointSiteUrl": "https://xxx.sharepoint.com/teams/xxx",
"publishingScope": "SaveOnly",
"authenticationType": "Digest"
"remoteFolders" : [
"/SiteAssets/**/*",
]
}
xxx
and SiteAssets
with the name of your team, and the folder within the site that you want to replicate. You can find documentation on the Populate Workspace
command here.If you are still having problems, can you describe which files you want to synchronize locally and I'll help you get your config file set up correctly.
Thanks for using SPGo!
Hey Chris - Thanks for the quick reply. I did as asked, but still no joy. I'm just a site collection owner that wants to do some customizing to her SharePoint site. I would ideally like to populate the whole tree so I have extra flexibility (and extra dangerousness ;))
{
"sourceDirectory": "src",
"sharePointSiteUrl": "https://xxx.sharepoint.com/teams/xxx",
"publishingScope": "SaveOnly",
"authenticationType": "Digest",
"remoteFolders" : [
"/SiteAssets/**/*"
]
}
Thanks for the help! Alainna
@alainnaw - Thanks for the update.
I'm going to try to replicate the issue using team sites. Do you know if this site was created via the SP UI, or via the Teams app?
Can you do a quick test with a site in your tenant that is on the /sites
managed path just to make sure the issue isn't related to authentication or something else?
Separately - SPGo does support working with full Site Collection hierarchies (trees), so once we get this initial issue resolved, I can help you configure you spgo.json
file to pull down all the files you need.
Hey Chris -
I don't have any sites on the /sites path unfortunately.
Hello @alainnaw - I've been trying to test this a number of ways, and I am, so far, unable to reproduce the bug. I've tried creating a team site via teams, as well as team sites via the Site Collection Manager.
A couple question for you:
spgo.json
file did you get the same error or a different error?Thanks for working with me on this. Hopefully we can get this resolved soon.
Hey @chrishasz,
I got the same error with each spgo.json file iteration I tried.
I tried the retrieve folder command and I received the same error.
Originally I wrote that I didn't think we had any special auth, but it turns out we do. We have two-factor auth if using AD credentials. I'm guessing this is probably a show-stopper.
Thank you for taking the time to help me out here. I appreciate it.
-AW
Hello @alainnaw -
Unfortunately VSCode is still preventing me from supporting O365 MFA natively. Are you able to define an app password for SPGo on your site?
If so, here is how to configure SPGo with App passwords: https://www.chrishasz.com/spgo/authentication/two-factor-authentication
Here is the documentation for configuring App Passwords: https://docs.microsoft.com/en-us/azure/active-directory/user-help/multi-factor-authentication-end-user-app-passwords#create-new-app-passwords
Hello @alainnaw -
I am in the process of adding "Addin Only" authentication to SPGo. Maybe this will work for you. Are you able to create an Addin registration on your team site(s)?
Hi there - I was following along with the video tutorial but I couldn't get the space to populate. Here's my SPGo.json file:
Here's the output (snipped some "==" so it wouldn't initiate a scroll in the issue report):
Any thoughts? Thank you!