You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimize tenant info retrieval and trigger CPV refresh
Replaces multiple Microsoft Graph API calls with a single batch request to retrieve organization and domain information when adding a tenant. Adds logic to trigger a CPV permissions refresh for the new tenant by starting the appropriate orchestrator.
$Results=@{'message'="Successfully added tenant $displayName ($defaultDomainName) to the tenant list with Direct Tenant status."; 'severity'='success' }
68
90
Write-LogMessage-tenant $defaultDomainName-tenantid $tenantId-API 'Add-Tenant'-message "Added tenant $displayName ($defaultDomainName) with Direct Tenant status."-Sev 'Info'
91
+
92
+
# Trigger CPV refresh to push remaining permissions to this specific tenant
0 commit comments