Loughborough Online Reading List System
NAME UserDetails - Return the details we hold about a user. DESCRIPTION The UserDetails LUMP API script returns the user ID, username, fullname and email for a user when supplied with either the user ID or username. If the script is passed a username and there is no matching user in the LUMP database, it will try to use external authentication data sources (such as ActiveDirectory) to locate a matching user and instantiate a record in the LUMP database for them. PARAMETERS Standard *username* - Name of user running this CGI script. Required unless web server authentication is in use (when it is, the web server authenticated user is used instead). *password* - Password for the user. This is only required if the web server is not handling the user authentication and if no security hash parameter is being given. *security_hash* - An opaque value used to authenticate the user without requiring the password to be sent. This value is generated by a previous execution of a LUMP API script and may well be time limited. It is only required if no password or webserver authentication is done. *act_as* - Users in the SysAdmins group can elect to act on the behalf of other users once they are themselves authenticated. If this parameter is present it should contain the username of the user that should be switched to if this option is available and the real user has been authenticated successfully. Optional. *session_id* - An opaque string as far as the server is concerned that is intended solely to allow async clients to differentiate different results more easily. Optional. Specific for this script *target_user_id* - ID for the user. This has to be supplied if no target_username is given. *target_username* - Username for the user. This has to be supplied if no target_user_id is given. RESULTS The script returns an XML document in the standard LUMP response format (as documented in LUMP-XML-Response). The <returns> section's contains the XML structure following this DTD fragment: <!ELEMENT returns (usergroup+)> <!ELEMENT user (id|username|fullname|email)> <!ELEMENT id (#PCDATA)> <!ELEMENT username (#PCDATA)> <!ELEMENT fullname (#PCDATA)> <!ELEMENT email (#PCDATA)> For example: <response> <returns> <user> <id>123</id> <username>toby123</username> <fullname>Toby MacHater</fullname> <email>T.MacHater@biguniversity.ac.uk</email> </user> </returns> </response> SEE ALSO UserGroupMembership SUOwner Members4Usergroup LUMP-XML-Response COPYRIGHT Copyright 2010 Loughborough University Library <firstname.lastname@example.org>. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts.