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, text/html

Sample:
[
  "59b0970f-c60e-4a92-94e8-44cf059943d8",
  "42da37e1-ecbd-4b44-a8d7-e60ec100a308"
]

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>59b0970f-c60e-4a92-94e8-44cf059943d8</guid>
  <guid>42da37e1-ecbd-4b44-a8d7-e60ec100a308</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, text/html

Sample:
{
  "e8917b7e-fd82-43d8-9fee-12e7cd56b9aa": [
    {
      "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
        }
      ]
    }
  ],
  "2228aa1b-7347-403a-8fc8-aba9e8451918": [
    {
      "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>e8917b7e-fd82-43d8-9fee-12e7cd56b9aa</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>2228aa1b-7347-403a-8fc8-aba9e8451918</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.