HELP FILE

Get User Data via LastPass API

    Use this API to get account details about your users.

    API command

    getuserdata

    Additional details

    The optional data element is used to filter or limit the returned data set.
    Tip: To prevent details from being omitted from the response, avoid retrieving more than 2,000 users at a time.
    pagesize
    Limits the maximum number of items listed per page.
    pageindex
    The page number. Default: 0.
    username
    <username> – Return only the specified user.
    disabled
    0 – Return only active accounts.
    1 – Return only disabled accounts.
    admin
    0 – Return only non-admin accounts.
    1 – Return only admin accounts.

    Request sample

    {
        "cid": 12345678,
        "provhash": "<Your API Secret>",
        "cmd": "getuserdata",
        "data": {
            "username": "user1@lastpass.com"
        }
    }

    Response sample

    {
        "total": 1,
        "count": 1,
        "Users": {
            "101": {
                "username": "user1@lastpass.com",
                "fullname": "Ned Flanders",
                "mpstrength": "100",
                "created": "2014-03-12 10:02:56",
                "last_pw_change": "2015-05-19 10:58:33",
                "last_login": "2015-05-29 11:45:05",
                "neverloggedin": false,
                "disabled": false,
                "admin": false,
                "linked": "personal.account@mydomain.com",
                "sites": 72,
                "notes": 19,
                "formfills": 2,
                "applications": 0,
                "attachments": 1,
                "password_reset_required": false,
                "groups": [
                    "Domain Admins",
                    "Dev Team",
                    "Support Team"
                ]
            }
        },
        "Groups": {
            "Domain Admins": [
                "user1@lastpass.com"
            ],
            "Dev Team": [
                "user1@lastpass.com"
            ],
            "Support Team": [
                "user1@lastpass.com"
            ]
        }
    }