product icon
Get Detailed Shared Folder Data via LastPass API

Get Detailed Shared Folder Data via LastPass API

    Use this API for getting a detailed list of all shared folders, the sites within them, and the permissions granted to them.

    API command

    getdetailedsfdata

    Additional details

    The 'data' field is optional; it also lists super admins.

    Request sample

    {
        "cid": 12345678,
        "provhash": "<Your API Secret>",
        "cmd": "getdetailedsfdata",
        "data": "all"
    }

    Response sample

    {
        "101": {
            "sharedfoldername": "ThisSFName",
            "score": 99,
            "users": [
                {
                    "username": "joe.user@lastpass.com",
                    "readonly": 0,
                    "give": 1,
                    "can_administer": 1,
                    "sites": [
                        "aaa.com",
                        "bbb.com"
                    ]
                },
                {
                    "username": "jane.user@lastpass.com",
                    "readonly": 1,
                    "give": 0,
                    "can_administer": 0,
                    "sites": [
                        "zzz.com"
                    ]
                }
            ]
        }
    }