Opened 7 years ago

Last modified 3 years ago

#6239 assigned enhancement

Importing users from existing sessions and permissions

Reported by: anonymous Owned by: Ryan J Ollos
Priority: normal Component: UserManagerPlugin
Severity: normal Keywords: user import
Cc: Ryan J Ollos Trac Release: 0.11


When I installed the plugin, I received an empty user list. Later when I started to fill it up with the user names from the sessions or the permissions, the existing session attributes filled up correctly. But entering the user names one by one is a bit of a hassle. Would it be possible to create some interface to mass import the user names and attributes from the existing session attributes and permissions? It could be something simple, like buttons "import from the existing sessions" and "import from the existing permissions" (maybe skipping the existing users). After the import one can remove the extra imported entries.

Also the user names which exist in the permission subjects show as groups in the user permissions panel. I find this a bit confusing.

Thanks for your work!

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by Steffen Hoffmann

Cc: Ryan J Ollos added; anonymous removed
Keywords: user import added

With current AccountManager code new user registration process has went into and is distributed to plug-able registration checks.

While creating usernames identical to existing username references in Trac db table permission is not allowed from an anonymous session (regular registration case), it is possible from an authenticated session with at least ACCTMGR_USER_ADMIN permission granted. So we could really allow it here too, yes.

Not so easy for session_attributes: It may include literally hundreds or thousands of references to mostly unauthenticated session by SID. Import that only, if you're prepared for nasty, tedious clean-up marathon on the user list. This might only be useful in rare cases, because I don't think that in general many admins set permissions before creating corresponding accounts - quite the contrary, but I may have a narrow-scoped, short-distance focus here and miss some use cases of yours, anonymous, out there.

Can't comment on the last assertion about group lists, but I remind you that Trac core has no clear concept about groups itself. It might even turn out to be impossible to fix within this plugin. But I'm just guessing on this particular issue here.

comment:2 Changed 3 years ago by Ryan J Ollos

Owner: changed from Catalin BALAN to Ryan J Ollos
Status: newassigned

Modify Ticket

Change Properties
Set your email in Preferences
as assigned The owner will remain Ryan J Ollos.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.