GET v1/ContactPersons/{id}/User
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
UserViewModel| Name | Description | Type | Additional 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": "293aea7b-0b09-4900-b084-b5d18896e9d9",
"CmpWwn": "5087e1eb-0833-4edb-af61-82ad76f71168",
"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>5087e1eb-0833-4edb-af61-82ad76f71168</CmpWwn>
<CntId>293aea7b-0b09-4900-b084-b5d18896e9d9</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>