mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-03-04 08:52:27 -05:00
Save scripts in the workspace per user #1036
Labels
No labels
AS
can't reproduce
can't reproduce
deployment
development
documentation
duplicate
duplicate
ee
enhancement
external
new driver
performance
third party issue
wait for response
wait for review
wontfix
x:Oracle
x:cassandra
x:clickhouse
x:db2
x:duckdb
x:greenplum
x:h2
x:h2gis
x:hana
x:hive
x:intersystems
x:kyuubi
x:maria
x:mongo
x:mysql
x:postgresql
x:presto
x:sql server
x:sqlite
x:teradata
x:trino
xf:accessibility
xf:administration
xf:authentication
xf:aws
xf:commit-mode
xf:connection
xf:data editor
xf:datatransfer
xf:dba
xf:driver management
xf:erd
xf:filters
xf:i18n
xf:i18n
xf:installer
xf:json
xf:ldap
xf:local config
xf:log viewer
xf:metadata
xf:metadata editor
xf:navigator
xf:okta
xf:query manager
xf:resource manager
xf:scripts
xf:sql editor
xf:tasks
xf:ui/uix
xo: Firefox
xo:eclipse
xo:internet explorer
xo:macos
xp:major
xrn:internal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudbeaver#1036
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @valentintraen on GitHub (Dec 9, 2025).
Hi !
Several of the CloudBeaver users at my company are web developers. They therefore need to regularly purge cookies from their browser and lose their tabs.
It would be great if they could save their sql scripts in the application workspace and not in the browser, and that everyone could only see the scripts they created (a bit like the tabs currently).
@EvgeniaBzzz commented on GitHub (Dec 9, 2025):
Hi @valentintraen
If I understood you correctly, your developers were simply writing and using scripts without saving them.
The script save button can be found in the left toolbar of the SQL editor, it looks like an old-school 3.5-inch floppy disk. After clicking it, a pop-up will appear where you can change the script name. Scripts created for private connections are visible only to their creators. Saved scripts are available in the side panel on the right (upper toolbar: Tools → Show scripts).
This article about the Resource Manager might also be helpful.
It that's not your case, please provide more information.
@valentintraen commented on GitHub (Dec 9, 2025):
I had seen this option but it only seems available on administrator accounts, right? I have it but the developer accounts don't have it
@EvgeniaBzzz commented on GitHub (Dec 9, 2025):
Could you describe your configuration? What permissions do your developers have? Common users? Are they using the connections you created in the shared project?
Please check that the Enable resource manager option is enabled in the server configuration. All users have access to creating scripts if this setting is enabled.
@valentintraen commented on GitHub (Dec 9, 2025):
Resource manager is already enabled.
All the devs belong to this ldap group mapping :
My account is mapped the same way but with admin rights
@EvgeniaBzzz commented on GitHub (Dec 9, 2025):
Are they definitely logging into the application under their own user accounts? With the Resource Manager enabled, the only reason I can think of for not being able to save a script is if the user is anonymous (not logged in).
@valentintraen commented on GitHub (Dec 9, 2025):
Yes, it is certain that they get along well with their user, we cannot do otherwise. And I tested it myself with a test user who is in their group, and indeed, I cannot save a script.
@EvgeniaBzzz commented on GitHub (Dec 9, 2025):
Can you check if that test user can see scripts tab?
Tools → Show scripts
@EvgeniaBzzz commented on GitHub (Dec 9, 2025):
What version are you using now?
@valentintraen commented on GitHub (Dec 9, 2025):
Yes, but in read-only :
(I created this script with my own account)
The last version, 25.3.0
@EvgeniaBzzz commented on GitHub (Dec 9, 2025):
Thank you, we'll need some time to investigate.
@valentintraen commented on GitHub (Dec 9, 2025):
Yes no problem. It looks like scripts are managed like connection configurations: the admin creates them and gives rights to them. Thank you
@EvgeniaBzzz commented on GitHub (Dec 10, 2025):
That's because private connections are disabled in the server configuration.
We are planning to add a permission that allows non-admin users to edit shared scripts.
For now, as a workaround, you can enable private connections. This will add the connection creation button, but it will also allow users to save scripts in the local project.
@valentintraen commented on GitHub (Dec 10, 2025):
Okay, for now the workaround will suffice. However, I'm very interested in the future development because allowing users doesn't meet my needs. But thank you, that's already pretty good.