Examples

This route maps usernames(logins) on xsede resources to people and returns person information.
For example, to get the information for the login 'tg455671' on 'stampede.tacc.xsede':

GET /userinfo/v1/people/by_username/stampede.tacc.xsede/tg455671
{
    "message": null,
    "result": {
        "person_id": 148,
        "last_name": "Navarro",
        "first_name": "John-Paul",
        "middle_name": null,
        "organization": "Argonne National Laboratory",
        "department": "Mathematics & Computer Science Division",
        "street1": "9700 S. Cass Ave.",
        "street2": "TCS, Building 240",
        "city": "Lemont",
        "state": "Illinois",
        "zipcode": "60439-4844",
        "country": "United States",
        "email": "navarro@mcs.anl.gov",
        "phone": "630-252-1233",
        "status": "inactive"
    }
}

Or to get the information for the person with portal login 'mshapiro':

GET /userinfo/v1/people/by_username/portal.teragrid/mshapiro
{
    "message": null,
    "result": {
        "person_id": 150,
        "last_name": "Shapiro",
        "first_name": "Michael",
        "middle_name": null,
        "organization": "University of Illinois at Urbana-Champaign",
        "department": "NCSA",
        "street1": "MC 257 - 1008 NCSA",
        "street2": "1205 W. Clark St.",
        "city": "Urbana",
        "state": "Illinois",
        "zipcode": "61801",
        "country": "United States",
        "email": "mshapiro@ncsa.uiuc.edu",
        "phone": "(217) 244-1514",
        "status": "active"
    }
}

NOTE: status will be one of: vetted, active, inactive, expired