GET v1/ContactPersons/{id}/User

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

UserViewModel
NameDescriptionTypeAdditional information
UserName

string

None.

UserId

string

None.

CntId

globally unique identifier

None.

CmpWwn

globally unique identifier

None.

CmpCode

string

None.

CicmpyId

integer

None.

CicntpId

integer

None.

PriceList

string

None.

ResId

integer

None.

UserRights

Collection of UserRolePermissions

None.

Response Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "UserId": "sample string 2",
  "CntId": "5da7a9ac-5278-4701-9ec8-79d15586e247",
  "CmpWwn": "4b658548-ee5a-46e1-b069-9e94aea7f29a",
  "CmpCode": "sample string 3",
  "CicmpyId": 1,
  "CicntpId": 1,
  "PriceList": "sample string 4",
  "ResId": 1,
  "UserRights": [
    {
      "RoleId": 1,
      "SecuobjectsId": 2,
      "UserPermissions": 1
    },
    {
      "RoleId": 1,
      "SecuobjectsId": 2,
      "UserPermissions": 1
    }
  ]
}

application/xml, text/xml

Sample:
<UserViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Dealerportal.Shared.ViewModels.v1.ContactPerson">
  <CicmpyId>1</CicmpyId>
  <CicntpId>1</CicntpId>
  <CmpCode>sample string 3</CmpCode>
  <CmpWwn>4b658548-ee5a-46e1-b069-9e94aea7f29a</CmpWwn>
  <CntId>5da7a9ac-5278-4701-9ec8-79d15586e247</CntId>
  <PriceList>sample string 4</PriceList>
  <ResId>1</ResId>
  <UserId>sample string 2</UserId>
  <UserName>sample string 1</UserName>
  <UserRights xmlns:d2p1="http://schemas.datacontract.org/2004/07/Dealerportal.Shared.Models">
    <d2p1:UserRolePermissions>
      <d2p1:_x003C_RoleId_x003E_k__BackingField>1</d2p1:_x003C_RoleId_x003E_k__BackingField>
      <d2p1:_x003C_SecuobjectsId_x003E_k__BackingField>2</d2p1:_x003C_SecuobjectsId_x003E_k__BackingField>
      <d2p1:_x003C_UserPermissions_x003E_k__BackingField>Read</d2p1:_x003C_UserPermissions_x003E_k__BackingField>
    </d2p1:UserRolePermissions>
    <d2p1:UserRolePermissions>
      <d2p1:_x003C_RoleId_x003E_k__BackingField>1</d2p1:_x003C_RoleId_x003E_k__BackingField>
      <d2p1:_x003C_SecuobjectsId_x003E_k__BackingField>2</d2p1:_x003C_SecuobjectsId_x003E_k__BackingField>
      <d2p1:_x003C_UserPermissions_x003E_k__BackingField>Read</d2p1:_x003C_UserPermissions_x003E_k__BackingField>
    </d2p1:UserRolePermissions>
  </UserRights>
</UserViewModel>