def _authz(self, sites): """Run late authorisation, remapping site names to canonical ones.""" remap = {} for site in sites: oldsite_authz_match(self.api, remap, role=["Global Admin", "Site Executive"], group=["global"], site=[site])