POST Accounts/GetEffectiveRoles

Gets back the effective permissions for a collection of users.

Request Information

URI Parameters

None.

Body Parameters

Collection of globally unique identifier

Request Formats

application/json, text/json

Sample:
[
  "8ae9a368-c767-4302-ad11-4c3262cba1dd",
  "6e10fc73-0219-4bfd-8e75-c3ec2d986eae"
]

text/html

Sample:
["8ae9a368-c767-4302-ad11-4c3262cba1dd","6e10fc73-0219-4bfd-8e75-c3ec2d986eae"]

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>8ae9a368-c767-4302-ad11-4c3262cba1dd</guid>
  <guid>6e10fc73-0219-4bfd-8e75-c3ec2d986eae</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:
{
  "247e3f0a-aaaf-40b2-845a-b4f2fe2b9715": [
    {
      "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
        }
      ]
    }
  ],
  "e826325e-52ad-48a1-b2e2-60d47781ef27": [
    {
      "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:
{"247e3f0a-aaaf-40b2-845a-b4f2fe2b9715":[{"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}]}],"e826325e-52ad-48a1-b2e2-60d47781ef27":[{"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>247e3f0a-aaaf-40b2-845a-b4f2fe2b9715</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>e826325e-52ad-48a1-b2e2-60d47781ef27</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.