product icon

Disable users via LastPass API

    Use this API to disable user accounts by email addresses.

    API command

    disableuser

    Additional details

    Request

    cid
    Company ID: a mandatory integer parameter
    provhash
    Company specific provisioning hash: a mandatory string parameter
    cmd
    The API command, that is, disableuser: a mandatory string parameter
    data
    The list of users to modify: a mandatory array parameter

    Response

    status
    The status of the response
    disabled_users
    The list of disabled users: an optional array
    unchanged_users
    The list of users that are not changed: an optional array
    error
    Description of the error if there was any: optional

    Request sample

    {
        "cid": 27,
        "provhash": "<Your API Secret>",
        "cmd": "disableuser",
        "data": [
            "user1@lastpass.com",
            "user2@lastpass.com"
        ]
    }

    Response sample

    {
        "status": "success",
        "disabled_users": [
            "user1@lastpass.com",
            "user2@lastpass.com"
        ]
    }