Skip to main content Skip to navigation

GetUserById (requestType=4)

If you just need to get the details of a particular user even if they are not logged in, you need to call the GetUserById (requestType=4) service:

Request: https://websignon.warwick.ac.uk/sentry?requestType=4&user=joebloggs

Response:

urn:websignon:usersource=WarwickNDS
urn:mace:dir:attribute-def:eduPersonScopedAffiliation=member@warwick.ac.uk
user=joebloggs
staff=true
returnType=2
member=true
id=9900000
lastname=Bloggs
urn:mace:dir:attribute-def:eduPersonAffiliation=member
dept=Information Technology Services
deptcode=IN
firstname=Joe
email=Joe.Bloggs@warwick.ac.uk
warwickattendancemode=1
student=false
name=Joe Bloggs
urn:mace:dir:attribute-def:eduPersonTargetedID=1onogpy7jb3wc968ehsdzsfan

If the user does not exist, you'll get the following response. Basically just an error code which will always be 54 in this case

Response:

returnType=54

 

The order of the name/value pairs is not guaranteed.

This is a plain text response listing all of the attributes for the user matching that particular token. Note that this response does not contain any information about whether the user is logged in or not.

Each of these attributes is listed in detail (and others) in the attributes list page.