I migrated from SharePoint 2010 to SharePoint Online with a 3rd party tool - background knowledge. The Security Group was in a local domain. I found an equivalent SharePoint Group group that I would like to use. I have a few 100+ sites and PowerShell will help. Sadly they are SUBSITES within ONE Site Collection. Again, we are migrating so it is a step to promote them to their own Site Collections.
I tested with
Set-SPOSiteGroup -Site "https://TenantDomain.SharePoint.com/sites/SiteCollectionName" -Identity "SharePoint Group Name" -PermissionLevelToAdd "Read"
this works FINE with the site collection, now when I put in /ABC I get
Set-SPOSiteGroup : The managed path sites/SiteCollectionName is not a managed path in this tenant.
In the management shell, I clicked the up arrow in my keyboard and appended the line that JUST worked and was working for the site collection. I want to set it on some subsites that have broken inheritance / unique permissions for each subsite. I just added that /ABC (no / at the end). Is there a different PowerShell command to run, etc.? Thank you.