product icon

Enable users via LastPass API

    Use this API to enable user accounts by email addresses.

    API command

    enableuser

    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, enableuser: a mandatory string parameter
    data
    The list of users to modify: a mandatory array parameter

    Response

    status
    The status of the response
    enabled_users
    The list of enabled 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": "enableuser",
        "data": [
            "user1@lastpass.com",
            "user2@lastpass.com"
        ]
    }

    Response sample

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