Skip to content

Commit 888cce4

Browse files
committed
Update Invoke-ExecAddTenant.ps1
1 parent 49741ff commit 888cce4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecAddTenant.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ function Invoke-ExecAddTenant {
2424

2525
if ($tenantId -eq $env:TenantID) {
2626
# If the tenant is the partner tenant, return an error because you cannot add the partner tenant as direct tenant
27-
$Results = @{'message' = 'You cannot add the partner tenant as a direct tenant.'; 'severity' = 'error'; 'state' = 'error' }
28-
Write-LogMessage -API 'Add-Tenant' -message "Attempted to add partner tenant $tenantId as direct tenant." -Sev 'Error'
27+
$Results = @{'message' = 'You cannot add the partner tenant as a direct tenant. Please connect the tenant using the "Connect to Partner Tenant" option. '; 'severity' = 'error'; }
2928
} elseif ($ExistingTenant) {
3029
# Update existing tenant
3130
$ExistingTenant.delegatedPrivilegeStatus = 'directTenant'

0 commit comments

Comments
 (0)