• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

TWiki::User doesn't offer a way to get a list of users. That's a shame, because this is the only way I have of mapping from an email address back to a User object, which is needed in MailInContrib.

Propose adding this:

sub getListOfWikiNames {
    my $this = shift;
    $this->{usermappingmanager}->cacheTWikiUsersTopic();
    return keys $this->{W2U};
}
Arguably this should be exposed via Func as well.

I think it's important to do this before Sven goes too far with user mappings; otherwise he may make it impossible.

CC

agreed - I did already add %ALLUSERS%, but its not quite functional - as I'm frightened what it would do on a large site

on IRC CC mentioned that he really needed a TWiki::Users->findUserByEmail()

SD

That's right, I do need findUserByEmail; but I now find (in a different application) that I also need a list of all registered users. Actually I need a full suite of user access functions, to determine group memberships etc. IIRC Meredith is also crying out for this. All it would take is the following additions to the TWiki::Func interface:

  • findUser( opts )  -> $user where opts can be wikiname => $wn or email => $em or login => $ln - basically anything that uniquely identifies the user.
  • getListOfUsers -> @userObjects - let's stop pissing about with login names and just let the Func interface know about the user object
  • getListOfGroups -> @userObjects
  • getCurrentUser -> $userObject
I think the User object declares everything else I might need.

CC

I implemented Plugins:FuncUsersContrib as a demonstrator of this API, and soi I can use the functions with TWiki-4

CC

ItemTemplate
Summary Need a way to get a list of registered users
ReportedBy TWiki:Main.CrawfordCurrie
Codebase

SVN Range Tue, 14 Feb 2006 build 8800
AppliesTo Extension
Component FuncUsersContrib
Priority Urgent
CurrentState Closed
WaitingFor

TargetRelease major
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2006-03-04 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback