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

Sample:
[
  "ae25b291-491d-4797-bdff-45855abeb329",
  "af900a09-8339-4a69-923d-dbc59350a5ed"
]

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>ae25b291-491d-4797-bdff-45855abeb329</guid>
  <guid>af900a09-8339-4a69-923d-dbc59350a5ed</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:
{
  "4090a915-fbd2-455a-a560-faf9efa0b230": [
    {
      "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
        }
      ]
    }
  ],
  "b3f85fa1-4df0-4d61-a281-9aae25143248": [
    {
      "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>4090a915-fbd2-455a-a560-faf9efa0b230</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>b3f85fa1-4df0-4d61-a281-9aae25143248</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.