HELP FILE

Apply Batch Changes to Groups via LastPass API

Apply Batch Changes to Groups via LastPass API

    Use this API for applying bulk changes to user groups.

    API command

    batchchangegrp

    Request sample

    {
        "cid": 12345678,
        "provhash": "<Your API Secret>",
        "cmd": "batchchangegrp",
        "data": [
            {
                "username": "user1@lastpass.com",
                "add": [
                    "Group1",
                    "Group2"
                ]
            },
            {
                "username": "user2@lastpass.com",
                "add": [
                    "Group1"
                ],
                "del": [
                    "Group2",
                    "Group3"
                ]
            }
        ]
    }

    Response sample (successful)

    {
        "0": {
            "username": "user1@lastpass.com",
            "add": ["Group2"]
        },
        "status": "OK"
    }

    Response sample (warning)

    {
        "status": "WARN",
        "errors": [
            "user2@lastpass.com does not exist"
        ]
    }