Modify

Opened 5 years ago

Last modified 8 months ago

#6239 assigned enhancement

Importing users from existing sessions and permissions

Reported by: anonymous Owned by: rjollos
Priority: normal Component: UserManagerPlugin
Severity: normal Keywords: user import
Cc: rjollos 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 (2)

comment:1 Changed 23 months ago by hasienda

  • Cc rjollos added
  • 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 8 months ago by rjollos

  • Owner changed from cbalan to rjollos
  • Status changed from new to assigned

Add Comment

Modify Ticket

Action
as assigned .
Author


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

 
Note: See TracTickets for help on using tickets.