Skip to content

Latest commit

 

History

History
79 lines (74 loc) · 1.94 KB

File metadata and controls

79 lines (74 loc) · 1.94 KB

Users

Add-GuacUserConnection

Add-GuacUserConnection -DataSource mysql -ConnectionId 53 -Username "john.doe"

Get-GuacUser

Get-GuacUser -DataSource mysql -Username "guacadmin" -Details permissions

Get-GuacUsers

Get-GuacUsers -DataSource mysql

New-GuacUser

$Parameters = @{
    "username"= "test"
    "password"= "pass"
    "attributes"= @{
      "disabled"= ""
      "expired"= ""
      "access-window-start"= ""
      "access-window-end"= ""
      "valid-from"= ""
      "valid-until"= ""
      "timezone"= ""
      "guac-full-name"= ""
      "guac-organization"= ""
      "guac-organizational-role"= ""
    }
}

New-GuacUser -DataSource mysql -Parameters $Parameters

Remove-GuacUser

Remove-GuacUser -DataSource mysql -Username "test"

Remove-GuacUserConnection

Remove-GuacUserConnection -DataSource mysql -ConnectionId 53 -Username "john.doe"

Update-GuacUser

$Username = "john.doe"
$Parameters = @{
    "username"= "$Username"
    "attributes"= @{
      "guac-email-address"= ""
      "guac-organizational-role"= ""
      "guac-full-name"= ""
      "expired"= ""
      "timezone"= ""
      "access-window-start"= ""
      "guac-organization"= ""
      "access-window-end"= ""
      "disabled"= ""
      "valid-until"= ""
      "valid-from"= ""
    }
}

Update-GuacUser -DataSource mysql -Username $Username -Parameters $Parameters

Update-GuacUserPassword

Update-GuacUserPassword -DataSource mysql -NewPassword "NewPass" -Username "john.doe" -OldPassword "OldPass"