Comments

2 comments

  • Avatar
    Elliott Herz

    Hey Eric,

    That documentation is a little out of date. There is a party as well as partyName that has to be populated.

    Example Payloads:

    [

      {

        "allMembers": null,

        "column": "SalesOrderId",

        "datatype": "numeric",

        "members": [

          "1"

        ],

        "shares": [

          {

            "party": "5c746cc422059c1f48ed82c6",

            "partyName": "ElliottAPITest@testuser.com",

            "type": "user"

          }

        ],

        "table": "Fact Sales"

      }

    ]

     

     

    Also supports multiple users at a time:

    [

      {

        "allMembers": null,

        "column": "SalesOrderId",

        "datatype": "numeric",

        "members": [

          "1"

        ],

        "shares": [

          {

            "party": "5c746cc422059c1f48ed82c6",

            "partyName": "ElliottAPITest@testuser.com",

            "type": "user"

          }

        ],

        "table": "Fact Sales"

      },

      {

        "allMembers": null,

        "column": "SalesOrderId",

        "datatype": "numeric",

        "members": [

          "2"

        ],

        "shares": [

          {

            "party": "5c746cc422059c1f48ed82c7",

            "partyName": "ElliottAPITest2@testuser.com",

            "type": "user"

          }

        ],

        "table": "Fact Sales"

      }

    ]

     

    Hope this helps.

    Best, Elliott

    0
    Comment actions Permalink
  • Avatar
    Moti Granovsky

    Hi Eric, you can find a detailed tutorial on the Data Security API as well as a Powershell code example here: https://developer.sisense.com/display/API2/Data+Security+API

    0
    Comment actions Permalink

Please sign in to leave a comment.