Examples

This route returns all the users on a resource with their usernames.
This example JSON is a truncated list of the users on ranger.tacc.teragrid.
The actual list would contain over 7500 users.
NOTE: some users have more than one username (eg, p4rodrig)

GET /userinfo/v1/resources/usernames/ranger.tacc.teragrid
{
    "message": null,
    "result": {
        "resource": "ranger.tacc.teragrid",
        "site": "TACC",
        "users": [
            {
                "personId": 12755,
                "portalLogin": "mvitse",
                "sitePersonId": "807549",
                "usernames": [
                    "vitse"
                ]
            },
            {
                "personId": 12750,
                "portalLogin": "elvati",
                "sitePersonId": "807818",
                "usernames": [
                    "elvati"
                ]
            },
            {
                "personId": 12753,
                "portalLogin": "prablen1",
                "sitePersonId": "807819",
                "usernames": [
                    "prablen1"
                ]
            },
            {
                "personId": 17711,
                "portalLogin": "p4rodrig",
                "sitePersonId": "813287",
                "usernames": [
                    "p4rodrig",
                    "tg810159"
                ]
            },
            {
                "personId": 17718,
                "portalLogin": "sszpakow",
                "sitePersonId": "813292",
                "usernames": [
                    "sszpakow"
                ]
            },
            {
                "personId": 17722,
                "portalLogin": "bjerg",
                "sitePersonId": "813296",
                "usernames": [
                    "bjerg"
                ]
            }
        ]
    }
}