Skip to content

Commit b8e37c2

Browse files
committed
ensure string values for gdap invite
1 parent 2297e4a commit b8e37c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/GDAP/Invoke-ExecGDAPInvite.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ function Invoke-ExecGDAPInvite {
9393
'InviteUrl' = $InviteUrl
9494
'OnboardingUrl' = $OnboardingUrl
9595
'RoleMappings' = [string](@($RoleMappings) | ConvertTo-Json -Depth 10 -Compress)
96-
'Technician' = $Technician
96+
'Technician' = [string]$Technician
9797
}
9898

99-
if ($Reference) { $InviteEntity['Reference'] = $Reference }
99+
if ($Reference) { $InviteEntity['Reference'] = [string]$Reference }
100100

101101
Add-CIPPAzDataTableEntity @Table -Entity $InviteEntity
102102

@@ -125,7 +125,7 @@ function Invoke-ExecGDAPInvite {
125125
Invite = $InviteEntity
126126
}
127127
}
128-
'Update'{
128+
'Update' {
129129
$Invite = Get-CIPPAzDataTableEntity @Table -Filter "PartitionKey eq 'invite' and RowKey eq '$InviteId'"
130130
if ($Invite) {
131131

0 commit comments

Comments
 (0)