I associated a business account for an unrestricted external user and have provided both portal admin and customizer roles but still cannot customize on the portal and when
I am on 2020 R1 and had an issue with JvD's solution. After running his script, I was able to open the customization browser, however the left-hand panel was blank which severely limits the browser's functionality. I noticed there were more missing rows for AU pages in the PortalMap than just AU000000 so I modified the script to pull all missing AU sites from SiteMap into PortalMap, which resolved my issue.
INSERT INTO dbo.PortalMap
(
CompanyID,
Position,
Title,
Description,
Url,
ScreenID,
CompanyMask,
NodeID,
ParentID,
CreatedByID,
CreatedByScreenID,
CreatedDateTime,
LastModifiedByID,
LastModifiedByScreenID,
LastModifiedDateTime,
RecordSourceID
)
SELECT CompanyID,
Position,
Title,
Description,
Url,
ScreenID,
CompanyMask,
NodeID,
ParentID,
CreatedByID,
CreatedByScreenID,
CreatedDateTime,
LastModifiedByID,
LastModifiedByScreenID,
LastModifiedDateTime,
RecordSourceID
FROM dbo.SiteMap
WHERE ScreenID Like 'AU%'
AND NOT EXISTS
(
SELECT *
FROM dbo.PortalMap
WHERE CompanyID = dbo.SiteMap.CompanyID
AND ScreenID = dbo.SiteMap.ScreenID
);