LPS-45589 Handling the scopeGroups properly when turning on the staging