POST Accounts/{moduleKey}/GetEffectiveRoles

Gets back the effective permissions for a given module for a collection of users.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
moduleKey

globally unique identifier

Required

Body Parameters

Collection of globally unique identifier

Request Formats

application/json, text/json

Sample:
[
  "64b208c1-1b8c-4b3e-918e-297d3b4b94c0",
  "968fe010-c939-40ea-9f48-6b17994bab4f"
]

text/html

Sample:
["64b208c1-1b8c-4b3e-918e-297d3b4b94c0","968fe010-c939-40ea-9f48-6b17994bab4f"]

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>64b208c1-1b8c-4b3e-918e-297d3b4b94c0</guid>
  <guid>968fe010-c939-40ea-9f48-6b17994bab4f</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:
{
  "b7300856-6507-43b1-a34e-5dda0b86b933": [
    {
      "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
        }
      ]
    }
  ],
  "e1773b79-34bf-4832-b9d4-708c276294c4": [
    {
      "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:
{"b7300856-6507-43b1-a34e-5dda0b86b933":[{"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}]}],"e1773b79-34bf-4832-b9d4-708c276294c4":[{"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>b7300856-6507-43b1-a34e-5dda0b86b933</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>e1773b79-34bf-4832-b9d4-708c276294c4</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.