Modify

Opened 14 years ago

Last modified 4 years ago

#6239 new enhancement

Importing users from existing sessions and permissions

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

Description

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 (4)

comment:1 Changed 11 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 10 years ago by Ryan J Ollos

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

comment:3 Changed 4 years ago by Ryan J Ollos

Cc: Ryan J Ollos removed

comment:4 Changed 4 years ago by Ryan J Ollos

Owner: Ryan J Ollos deleted
Status: assignednew

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


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

 
Note: See TracTickets for help on using tickets.