POST {authenticationKey}/{version}/Accounts/GetEffectiveRoles

Gets back the effective permissions for a collection of users.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
authenticationKey

string

None.

version

string

None.

Body Parameters

Collection of globally unique identifier

Request Formats

application/json, text/json

Sample:
[
  "126e04d5-2519-4544-a26b-87d7c712e92a",
  "21681815-b639-44a9-972b-29049cf34c81"
]

text/html

Sample:
["126e04d5-2519-4544-a26b-87d7c712e92a","21681815-b639-44a9-972b-29049cf34c81"]

application/xml, text/xml

Sample:
<ArrayOfguid xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <guid>126e04d5-2519-4544-a26b-87d7c712e92a</guid>
  <guid>21681815-b639-44a9-972b-29049cf34c81</guid>
</ArrayOfguid>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

SystemUserModel

Dictionary of globally unique identifier [key] and Collection of RoleModel [value]

Response Formats

application/json, text/json

Sample:
{
  "752affb8-352a-4ea1-9fbf-c3d16e3d6d6b": [
    {
      "Name": "sample string 1",
      "Description": "sample string 2",
      "PermissionList": [
        {
          "IsCustom": true,
          "Name": "sample string 2",
          "Description": "sample string 3",
          "DisplayName": "sample string 4",
          "AllowIdentification": true
        },
        {
          "IsCustom": true,
          "Name": "sample string 2",
          "Description": "sample string 3",
          "DisplayName": "sample string 4",
          "AllowIdentification": true
        }
      ]
    },
    {
      "Name": "sample string 1",
      "Description": "sample string 2",
      "PermissionList": [
        {
          "IsCustom": true,
          "Name": "sample string 2",
          "Description": "sample string 3",
          "DisplayName": "sample string 4",
          "AllowIdentification": true
        },
        {
          "IsCustom": true,
          "Name": "sample string 2",
          "Description": "sample string 3",
          "DisplayName": "sample string 4",
          "AllowIdentification": true
        }
      ]
    }
  ],
  "cf1887dc-765a-4609-b826-2efe3aad567e": [
    {
      "Name": "sample string 1",
      "Description": "sample string 2",
      "PermissionList": [
        {
          "IsCustom": true,
          "Name": "sample string 2",
          "Description": "sample string 3",
          "DisplayName": "sample string 4",
          "AllowIdentification": true
        },
        {
          "IsCustom": true,
          "Name": "sample string 2",
          "Description": "sample string 3",
          "DisplayName": "sample string 4",
          "AllowIdentification": true
        }
      ]
    },
    {
      "Name": "sample string 1",
      "Description": "sample string 2",
      "PermissionList": [
        {
          "IsCustom": true,
          "Name": "sample string 2",
          "Description": "sample string 3",
          "DisplayName": "sample string 4",
          "AllowIdentification": true
        },
        {
          "IsCustom": true,
          "Name": "sample string 2",
          "Description": "sample string 3",
          "DisplayName": "sample string 4",
          "AllowIdentification": true
        }
      ]
    }
  ]
}

text/html

Sample:
{"752affb8-352a-4ea1-9fbf-c3d16e3d6d6b":[{"Name":"sample string 1","Description":"sample string 2","PermissionList":[{"IsCustom":true,"Name":"sample string 2","Description":"sample string 3","DisplayName":"sample string 4","AllowIdentification":true},{"IsCustom":true,"Name":"sample string 2","Description":"sample string 3","DisplayName":"sample string 4","AllowIdentification":true}]},{"Name":"sample string 1","Description":"sample string 2","PermissionList":[{"IsCustom":true,"Name":"sample string 2","Description":"sample string 3","DisplayName":"sample string 4","AllowIdentification":true},{"IsCustom":true,"Name":"sample string 2","Description":"sample string 3","DisplayName":"sample string 4","AllowIdentification":true}]}],"cf1887dc-765a-4609-b826-2efe3aad567e":[{"Name":"sample string 1","Description":"sample string 2","PermissionList":[{"IsCustom":true,"Name":"sample string 2","Description":"sample string 3","DisplayName":"sample string 4","AllowIdentification":true},{"IsCustom":true,"Name":"sample string 2","Description":"sample string 3","DisplayName":"sample string 4","AllowIdentification":true}]},{"Name":"sample string 1","Description":"sample string 2","PermissionList":[{"IsCustom":true,"Name":"sample string 2","Description":"sample string 3","DisplayName":"sample string 4","AllowIdentification":true},{"IsCustom":true,"Name":"sample string 2","Description":"sample string 3","DisplayName":"sample string 4","AllowIdentification":true}]}]}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfguidArrayOfRoleModel7p07gKc8 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfguidArrayOfRoleModel7p07gKc8>
    <Key>752affb8-352a-4ea1-9fbf-c3d16e3d6d6b</Key>
    <Value xmlns:d3p1="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Membership">
      <d3p1:RoleModel>
        <d3p1:Description>sample string 2</d3p1:Description>
        <d3p1:Name>sample string 1</d3p1:Name>
        <d3p1:PermissionList>
          <d3p1:PermissionModel>
            <d3p1:AllowIdentification>true</d3p1:AllowIdentification>
            <d3p1:Description>sample string 3</d3p1:Description>
            <d3p1:DisplayName>sample string 4</d3p1:DisplayName>
            <d3p1:Name>sample string 2</d3p1:Name>
            <d3p1:IsCustom>true</d3p1:IsCustom>
          </d3p1:PermissionModel>
          <d3p1:PermissionModel>
            <d3p1:AllowIdentification>true</d3p1:AllowIdentification>
            <d3p1:Description>sample string 3</d3p1:Description>
            <d3p1:DisplayName>sample string 4</d3p1:DisplayName>
            <d3p1:Name>sample string 2</d3p1:Name>
            <d3p1:IsCustom>true</d3p1:IsCustom>
          </d3p1:PermissionModel>
        </d3p1:PermissionList>
      </d3p1:RoleModel>
      <d3p1:RoleModel>
        <d3p1:Description>sample string 2</d3p1:Description>
        <d3p1:Name>sample string 1</d3p1:Name>
        <d3p1:PermissionList>
          <d3p1:PermissionModel>
            <d3p1:AllowIdentification>true</d3p1:AllowIdentification>
            <d3p1:Description>sample string 3</d3p1:Description>
            <d3p1:DisplayName>sample string 4</d3p1:DisplayName>
            <d3p1:Name>sample string 2</d3p1:Name>
            <d3p1:IsCustom>true</d3p1:IsCustom>
          </d3p1:PermissionModel>
          <d3p1:PermissionModel>
            <d3p1:AllowIdentification>true</d3p1:AllowIdentification>
            <d3p1:Description>sample string 3</d3p1:Description>
            <d3p1:DisplayName>sample string 4</d3p1:DisplayName>
            <d3p1:Name>sample string 2</d3p1:Name>
            <d3p1:IsCustom>true</d3p1:IsCustom>
          </d3p1:PermissionModel>
        </d3p1:PermissionList>
      </d3p1:RoleModel>
    </Value>
  </KeyValueOfguidArrayOfRoleModel7p07gKc8>
  <KeyValueOfguidArrayOfRoleModel7p07gKc8>
    <Key>cf1887dc-765a-4609-b826-2efe3aad567e</Key>
    <Value xmlns:d3p1="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Membership">
      <d3p1:RoleModel>
        <d3p1:Description>sample string 2</d3p1:Description>
        <d3p1:Name>sample string 1</d3p1:Name>
        <d3p1:PermissionList>
          <d3p1:PermissionModel>
            <d3p1:AllowIdentification>true</d3p1:AllowIdentification>
            <d3p1:Description>sample string 3</d3p1:Description>
            <d3p1:DisplayName>sample string 4</d3p1:DisplayName>
            <d3p1:Name>sample string 2</d3p1:Name>
            <d3p1:IsCustom>true</d3p1:IsCustom>
          </d3p1:PermissionModel>
          <d3p1:PermissionModel>
            <d3p1:AllowIdentification>true</d3p1:AllowIdentification>
            <d3p1:Description>sample string 3</d3p1:Description>
            <d3p1:DisplayName>sample string 4</d3p1:DisplayName>
            <d3p1:Name>sample string 2</d3p1:Name>
            <d3p1:IsCustom>true</d3p1:IsCustom>
          </d3p1:PermissionModel>
        </d3p1:PermissionList>
      </d3p1:RoleModel>
      <d3p1:RoleModel>
        <d3p1:Description>sample string 2</d3p1:Description>
        <d3p1:Name>sample string 1</d3p1:Name>
        <d3p1:PermissionList>
          <d3p1:PermissionModel>
            <d3p1:AllowIdentification>true</d3p1:AllowIdentification>
            <d3p1:Description>sample string 3</d3p1:Description>
            <d3p1:DisplayName>sample string 4</d3p1:DisplayName>
            <d3p1:Name>sample string 2</d3p1:Name>
            <d3p1:IsCustom>true</d3p1:IsCustom>
          </d3p1:PermissionModel>
          <d3p1:PermissionModel>
            <d3p1:AllowIdentification>true</d3p1:AllowIdentification>
            <d3p1:Description>sample string 3</d3p1:Description>
            <d3p1:DisplayName>sample string 4</d3p1:DisplayName>
            <d3p1:Name>sample string 2</d3p1:Name>
            <d3p1:IsCustom>true</d3p1:IsCustom>
          </d3p1:PermissionModel>
        </d3p1:PermissionList>
      </d3p1:RoleModel>
    </Value>
  </KeyValueOfguidArrayOfRoleModel7p07gKc8>
</ArrayOfKeyValueOfguidArrayOfRoleModel7p07gKc8>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.