Examples

This example was generated 2021-02-20 11:45am
This lists all active users ("status": "active") and inactive users ("status": "inactive") where the inactivation happened less than 365 days ago
NB: grace=0 will only show active users
NB: grace defaults to the MyProxy single-signon inactive grace period.
NB: the result is truncated. It originally had about 5000 users
NB: it is possible for a user to have multiple usernames (see personId 5552)
NB: it is possible for a user to have multiple sitePersonIds (see personId 14506)
NB: is is possible for a user to have no active DNs (see Community User personId 46294)

GET /spacct/v1/users/resource/comet.sdsc.xsede?grace=365
{
    "message": null,
    "result": {
        "resource": "comet.sdsc.xsede",
        "site": "SDSC",
        "users": [
            {
                "activeDNs": [
                    "/C=US/O=National Center for Supercomputing Applications/CN=Neal Stephen McKenney",
                    "/C=US/O=Pittsburgh Supercomputing Center/CN=Neal Stephen McKenney"
                ],
                "firstName": "Neal",
                "inactiveDNs": [],
                "lastName": "McKenney",
                "personId": 70440,
                "portalLogin": "nmckenne",
                "sitePersonIds": [
		   "108837"
		],
                "status": "active",
                "statusTime": "2018-10-08T13:29:05.495+00:00",
                "usernames": [
                    "nmckenne"
                ]
            },
            {
                "activeDNs": [
                    "/C=US/O=National Center for Supercomputing Applications/CN=Jessica Reilly",
                    "/C=US/O=Pittsburgh Supercomputing Center/CN=Jessica Reilly"
                ],
                "firstName": "Jessica",
                "inactiveDNs": [],
                "lastName": "Reilly",
                "personId": 85506,
                "portalLogin": "reillyj",
                "sitePersonIds": [
		   "118217"
		],
                "status": "inactive",
                "statusTime": "2020-03-18T01:01:29.659+00:00",
                "usernames": [
                    "reillyj"
                ]
            },
            {
                "activeDNs": [
                    "/C=US/O=National Center for Supercomputing Applications/CN=Pete Riley",
                    "/C=US/O=Pittsburgh Supercomputing Center/CN=Pete Riley"
                ],
                "firstName": "Pete",
                "inactiveDNs": [
                    "/C=US/O=Pittsburgh Supercomputing Center/OU=PSC Kerberos Certification Authority/CN=priley/UID=priley/emailAddress=priley@PSC.EDU",
                    "/C=US/O=National Center for Supercomputing Applications/OU=People/CN=Pete Riley",
                    "/DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/O=TACC Classic CA/CN=Pete Riley",
                    "/DC=EDU/DC=TENNESSEE/DC=NICS/O=National Institute for Computational Sciences/CN=Pete Riley"
                ],
                "lastName": "Riley",
                "personId": 1131,
                "portalLogin": "priley",
                "sitePersonIds": [
		   "15394"
		],
                "status": "active",
                "statusTime": "2015-10-08T16:48:36.567+00:00",
                "usernames": [
                    "ux451672"
                ]
            },
            {
                "activeDNs": [
                    "/DC=EDU/DC=UTEXAS/DC=TACC/O=MYPROXY/CN=train184",
                    "/C=US/O=National Center for Supercomputing Applications/CN=account train184",
                    "/C=US/O=Pittsburgh Supercomputing Center/CN=account train184"
                ],
                "firstName": "account",
                "inactiveDNs": [
                    "/DC=EDU/DC=TENNESSEE/DC=NICS/O=National Institute for Computational Sciences/CN=account train184",
                    "/DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/O=TACC MICS CA/CN=account train184",
                    "/DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/O=TACC Classic CA/CN=account train184"
                ],
                "lastName": "train184",
                "personId": 43356,
                "portalLogin": "train184",
                "sitePersonIds": [
		   "93214"
		],
                "status": "active",
                "statusTime": "2017-07-19T20:23:34.210+00:00",
                "usernames": [
                    "xdtr184"
                ]
            },
            {
                "activeDNs": [],
                "firstName": "zhanglab",
                "inactiveDNs": [],
                "lastName": "Community User",
                "personId": 46294,
                "portalLogin": "zhanglab",
                "sitePersonIds": [
		   "95139"
		],
                "status": "active",
                "statusTime": "2016-11-18T15:43:26.390+00:00",
                "usernames": [
                    "zhanglab"
                ]
            },
	    {
                "activeDNs": [
                    "/C=US/O=National Center for Supercomputing Applications/CN=Walter Landry",
                    "/C=US/O=Pittsburgh Supercomputing Center/CN=Walter Landry",
                    "/DC=EDU/DC=UTEXAS/DC=TACC/O=MYPROXY/CN=tg458568"
                ],
                "firstName": "Walter",
                "inactiveDNs": [
                    "/C=US/O=Pittsburgh Supercomputing Center/OU=PSC Kerberos Certification Authority/CN=wlandry/UID=wlandry/emailAddress=wlandry@PSC.EDU",
                    "/C=US/O=National Center for Supercomputing Applications/OU=People/CN=Walter Landry",
                    "/DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/O=TACC MICS CA/CN=Walter Landry",
                    "/DC=EDU/DC=TENNESSEE/DC=NICS/O=National Institute for Computational Sciences/CN=Walter Landry"
                ],
                "lastName": "Landry",
                "personId": 5552,
                "portalLogin": "wlandry",
                "sitePersonIds": [
		   "6769"
		],
                "status": "active",
                "statusTime": "2019-06-14T18:06:09.378+00:00",
                "usernames": [
                    "wlandry",
                    "ux450362"
                ]
            },
            {
                "activeDNs": [
                    "/C=US/O=National Center for Supercomputing Applications/CN=Buddhadev Maiti 1",
                    "/C=US/O=Pittsburgh Supercomputing Center/CN=Buddhadev Maiti 1",
                    "/DC=EDU/DC=UTEXAS/DC=TACC/O=MYPROXY/CN=tg866565",
                    "/C=US/O=Pittsburgh Supercomputing Center/CN=Buddhadev Maiti",
                    "/C=US/O=National Center for Supercomputing Applications/CN=Buddhadev Maiti"
                ],
                "firstName": "Buddhadev",
                "inactiveDNs": [
                    "/C=US/O=National Center for Supercomputing Applications/OU=People/CN=Buddhadev Maiti",
                    "/DC=EDU/DC=TENNESSEE/DC=NICS/O=National Institute for Computational Sciences/CN=Buddhadev Maiti"
                ],
                "lastName": "Maiti",
                "personId": 14506,
                "portalLogin": "bmaiti",
                "sitePersonIds": [
                    "122417",
                    "78708"
                ],
                "status": "active",
                "statusTime": "2020-04-10T13:58:53.140-07:00",
                "usernames": [
                    "bmaiti20"
                ]
            },
        ]
    }
}

Params

Param name Description
grace
optional

grace period in days

Validations:

  • Must be a Integer