GET api/UserManager/GetPermissions/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

ObjResultOfGroupPerm[]
NameDescriptionTypeAdditional information
Data

Collection of GroupPerm

None.

Error

Error description if the operation failed

string

None.

Success

Operation result

boolean

None.

ErrorCode

Error code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "name": "sample string 1",
      "permissions": [
        {
          "id": 1,
          "name": "sample string 2",
          "enabled": true
        },
        {
          "id": 1,
          "name": "sample string 2",
          "enabled": true
        }
      ]
    },
    {
      "name": "sample string 1",
      "permissions": [
        {
          "id": 1,
          "name": "sample string 2",
          "enabled": true
        },
        {
          "id": 1,
          "name": "sample string 2",
          "enabled": true
        }
      ]
    }
  ],
  "error": "sample string 1",
  "success": true,
  "errorCode": 3
}

application/xml, text/xml

Sample:
<ObjResultOfArrayOfGroupPermXmvOanaG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAMClient.Models">
  <_x003C_ErrorCode_x003E_k__BackingField>3</_x003C_ErrorCode_x003E_k__BackingField>
  <_x003C_Error_x003E_k__BackingField>sample string 1</_x003C_Error_x003E_k__BackingField>
  <_x003C_Success_x003E_k__BackingField>true</_x003C_Success_x003E_k__BackingField>
  <Data>
    <GroupPerm>
      <Name>sample string 1</Name>
      <Permissions>
        <Permission>
          <Enabled>true</Enabled>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </Permission>
        <Permission>
          <Enabled>true</Enabled>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </Permission>
      </Permissions>
    </GroupPerm>
    <GroupPerm>
      <Name>sample string 1</Name>
      <Permissions>
        <Permission>
          <Enabled>true</Enabled>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </Permission>
        <Permission>
          <Enabled>true</Enabled>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </Permission>
      </Permissions>
    </GroupPerm>
  </Data>
</ObjResultOfArrayOfGroupPermXmvOanaG>
bool hasModels = Model.ParameterModels.Count > 0; if (hasModels) {

Parameter Information

}