Skip to content

Commit

Permalink
Updated CreateUserTenantMappingEntry.ps1 in Azure Automation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nboettcher committed Nov 14, 2017
1 parent 23618ef commit 06c1fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CreateUserTenantMappingEntry.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $sqlCredential = Get-AutomationPSCredential -Name 'SQLCredentials'
$connectionString = "Data Source=" + $sqlServer + ";Initial Catalog=" + $database + ";User ID=" + $sqlCredential.UserName + ";Password=" + $sqlCredential.GetNetworkCredential().Password + ";Connection Timeout=90"
$connection = New-Object -TypeName System.Data.SqlClient.SqlConnection($connectionString)

IF([string]::IsNullOrEmpty($userId))
IF($userId.toString() -eq [system.guid]::empty)
{
$id = [guid]::NewGuid()
$query = "INSERT INTO InvitedUsers (Id, IdentityProvider, IdentityUserId, TenantId) VALUES ('" + $id + "', '" + $idp + "', '" + $idpUserId + "', '" + $tenantId + "')"
Expand Down

0 comments on commit 06c1fe4

Please sign in to comment.