HELP FILE

Push Sites to Users via LastPass API

Push Sites to Users via LastPass API

    Use this API to push sites into the vaults of your users.

    API command

    pushsitestousers

    Additional details

    users
    The users to whom the site is pushed. To push to all users, enter 'all'. To push to a group, enter the name of the group (for example, 'Support Group'). To push to a single user, enter their account email address.
    persistent
    Set a site as persistent to include it in the vault of each user added to your company or a group. Value: '1' if persistent, '0' if not.
    url
    The site's URL.
    name
    The site's name.
    group
    The site's group.
    usernametype
    Define how the site's username is populated. The value 'email' sets the site username as the user's LastPass account email address (local-part@domain.com). The value 'username' sets the site username as the local-part (username portion) of the user's LastPass account email address (local-part). A value of custom sets a hardcoded username (see the next parameter, username).
    username
    To populate a site's username from the value of this parameter, set usernametype to 'custom'.
    password
    The site's password.
    notes
    The site's notes.
    fav
    Mark sites as Favorite. Value: 'on' to mark as a favorite, otherwise blank.
    decryptid
    The ID of the shared folder with the key used to encrypt the data (blank or 0 if the data isn't encrypted).

    Request sample

    {
        "cid": 12345678,
        "provhash": "<Your API Secret>",
        "cmd": "pushsitestousers",
        "data": {
            "users": "user1@lastpass.com",
            "persistent": "0",
            "url": "https:\/\/example.com",
            "name": "Example",
            "group": "Group",
            "usernametype": "custom",
            "username": "user1@lastpass.com",
            "password": "Password",
            "notes": "Notes",
            "fav": "",
            "decryptid": "0"
        }
    }

    Response sample

    {
        "status": "OK",
        "psid": "73"
    }