I am wondering, if a Team has external sharing enabled, and I am site collection admin/owner of the team and the underlying site, can I disable external sharing? In my case external sharing is just adding complexity, all persons that requires the information already has access and the information is confidential so we do not want external sharing.
According to this article external sharing needs to be disabled both for the O365 group and the SharePoint site, but it also seems like tenant admin rights are required: https://laurakokkarinen.com/how-to-completely-disable-external-sharing-for-a-single-office-365-group/
Is tenant admin rights needed for disabling external sharing? Or can I do this as site collection admin, using PnP or CSOM?