On Mon, Nov 10, 2025 at 4:22 AM Jesper Vingum Mortensen <[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 >
