Hi again

Thanks for the quick response
We have been trying our luck with yaml and the import option, this is a single 
connection. Now the name and the groups are ok, and also the hostname, port, 
Username and private key. The max connections, screen recording and sftp 
settings remains untouched.
---
- name: test3connection
    protocol: ssh
    parameters:
      hostname: 0.0.0.0
      port: 22
      username: guac
      private-key: ${GUAC_PRIVATE_KEY}
      max-connections: 2
      max-connections-per-user: 2
      passphrase: ""
      parentIdentifier: ""
    screen-recording:
      recording-path: ${HISTORY_PATH}/${HISTORY_UUID}
      recording-include-key-events: true
      create-recording-path: true
    SFTP:
      enable-sftp: true
      sftp-disable-upload: true
      sftp-disable-download: false
    group: ROOT/testgr3/Child Group 11

I guess we were hoping for a quick solution, but we will look into the other 
options you mentioned.
Thanks in advance.

regards
Jesper

From: Nick Couchman <[email protected]>
Sent: 10. november 2025 16:51
To: [email protected]
Subject: Re: connection automation

[EKSTERN E-MAIL] Denne e-mail er sendt fra en ekstern afsender.
Vær opmærksom på, at den kan indeholde links og vedhæftede filer, som ikke er 
sikre.

On Mon, Nov 10, 2025 at 4:22 AM Jesper Vingum Mortensen 
<[email protected]<mailto:[email protected]>>
 wrote:
Hi

Using guacamole 1.6.0, and I must say that we are very happy with it.
I am trying to automate connection creation, because we have a lot of 
connections and they seem to multiply over time. So far I have had some luck 
using the “import” feature and a yaml file, this works for creating the 
connection but not groups. And there are various parameters that I can´t seem 
to set. Like “Automatically create recording path:” in Screen recording and 
enable SFTP. I was kinda hoping that someone had some experience doing this?


Yes, the Connection Import functionality only supports connections, not 
connection groups. If the groups already exist, however, you should be able to 
specify the parent id of that group in the import process, and I believe that 
will work to organize them.

For the parameters, you should be able to import any of the parameters with the 
import process, including recording parameters, SFTP, etc. You'll just need to 
make sure you're using the correct parameters and formatting the file 
correctly. Or it's possible there's a bug in the import process, but anything 
should be usable. Can you post an example YAML file (sanitized of any sensitive 
information), and then what you're seeing after you import it?

Beyond that import method, there are a handful of options that might be useful 
for you:
* The entire web application is based on a REST API, so you could automate it 
using that REST API and the connection creation endpoints. Unfortunately that's 
not terribly well documented...err...at all...so you basically have to use the 
Browser Developer Console to see the methods used when you create a connection, 
and then go turn those into a program or script that utilizes those endpoints 
to create the connections.
* If you're using the JDBC back-end, which you are if you're using the Import 
feature :-), then you can also manipulate the database directly. There is some 
documentation on this: 
https://guacamole.apache.org/doc/gug/jdbc-auth-schema.html.
* There's also a JSON extension which allows you to call a Guacamole endpoint 
from another application and have the connections, groups, etc., created 
dynamically and have the user logged in to the application. This allows for 
Guacamole to be integrated as a part of another application without having to 
persistently store information that might be constantly changing. This is 
documented, here: https://guacamole.apache.org/doc/gug/json-auth.html.

-Nick

Reply via email to