Modify ↓
Opened 17 years ago
Last modified 11 years ago
#5010 new enhancement
Force users to join/pre-join groups?
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | low | Component: | AnnouncerPlugin |
| Severity: | minor | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description
Is there a way to force users to automatically join or pre-add them into a group?
I'm trying to set up a local trac but having to log in and out of each account to subscribe to the appropriate groups is annoying.
Attachments (0)
Change History (8)
comment:1 Changed 17 years ago by
| Type: | defect → task |
|---|
comment:2 Changed 17 years ago by
comment:3 Changed 17 years ago by
I wish there was edit :( The first two examples are obviously sql and not python.
comment:4 Changed 17 years ago by
Thanks. The SQL works.
I wish I could add an admin panel but I'm seriously not up to the task (although I'll probably try, fail and hide in shame).
comment:5 Changed 16 years ago by
This is similar to an enhancement request I posted in #5572, assuming you want to specify defaults that would apply to all users at the time their accounts are created.
comment:6 Changed 16 years ago by
| Type: | task → enhancement |
|---|
comment:7 Changed 15 years ago by
| Priority: | normal → low |
|---|---|
| Severity: | normal → minor |
comment:8 Changed 11 years ago by
| Owner: | Robert Corsaro deleted |
|---|
Note: See
TracTickets for help on using
tickets.



There is currently no functionality for this. You could write a python script, or make an admin panel to list users and add them to groups. None of the following code is tested. The python for insertion would be:
If the row already exists, then it needs to be updated instead:
It can be done with the session in trac(much easier):
If you do this within a plugin, you won't need to create the env. I will accept an admin panel for this functionality.