GET api/admin/users/{userId}/profile-page-model
This method will retrieve profile page model for a system user identified by his user id
Requires Authorization!
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userId |
User Id |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Instance of
SystemUserProfilePageModelName | Description | Type | Additional information |
---|---|---|---|
UserProfile | SystemUserProfilePo |
None. |
|
CountyAssignments | Collection of UserCountyAssignmentPo |
None. |
|
EmploymentRecord | EmploymentDetails |
None. |
Response Formats
application/json, text/json
Sample:
{ "userProfile": { "userId": 1, "systemUserProfileId": 2, "userName": "sample string 3", "firstName": "sample string 4", "lastName": "sample string 5", "phoneNumber": "sample string 6", "cellPhone": "sample string 7", "email": "sample string 8", "personalEmail": "sample string 9", "socialSecurity": "sample string 10", "avatar": "sample string 11", "birthday": "2025-05-20T14:29:57.5770971-05:00", "addressLine1": "sample string 12", "addressLine2": "sample string 13", "city": "sample string 14", "state": "sample string 15", "zipCode": "sample string 16", "roleId": 17, "role": "sample string 18" }, "countyAssignments": [ { "countyName": "sample string 1", "userId": 2, "countyId": 3, "assignmentDate": "2025-05-20T14:29:57.5807658-05:00", "id": 5 }, { "countyName": "sample string 1", "userId": 2, "countyId": 3, "assignmentDate": "2025-05-20T14:29:57.5807658-05:00", "id": 5 } ], "employmentRecord": { "userId": 1, "startDate": "2025-05-20T14:29:57.5807658-05:00", "endDate": "2025-05-20T14:29:57.5807658-05:00", "sickDayCount": 3, "vacationDayCount": 4, "terminationReason": "sample string 5", "addedDate": "2025-05-20T14:29:57.5828439-05:00", "lastUpdateDate": "2025-05-20T14:29:57.5828439-05:00", "rate": 1.0, "employmentTypeId": 7, "employmentType": { "id": 1, "type": "sample string 2", "description": "sample string 3" }, "user": { "id": 1, "accessFailedCount": 2, "email": "sample string 3", "emailConfirmed": true, "lockoutEnabled": true, "lockoutEndDateUtc": "2025-05-20T14:29:57.5849274-05:00", "passwordHash": "sample string 6", "phoneNumberConfirmed": true, "securityStamp": "sample string 8", "twoFactorEnabled": true, "userName": "sample string 10", "joinDate": "2025-05-20T14:29:57.5849274-05:00", "firstName": "sample string 12", "lastName": "sample string 13", "isSystemUser": true, "accountVerified": true, "acceptedTermsAndConditionsDate": "2025-05-20T14:29:57.5849274-05:00", "phoneNumber": "sample string 15", "roles": [], "claims": [], "logins": [] }, "id": 8 } }
text/html
Sample:
{"userProfile":{"userId":1,"systemUserProfileId":2,"userName":"sample string 3","firstName":"sample string 4","lastName":"sample string 5","phoneNumber":"sample string 6","cellPhone":"sample string 7","email":"sample string 8","personalEmail":"sample string 9","socialSecurity":"sample string 10","avatar":"sample string 11","birthday":"2025-05-20T14:29:57.5770971-05:00","addressLine1":"sample string 12","addressLine2":"sample string 13","city":"sample string 14","state":"sample string 15","zipCode":"sample string 16","roleId":17,"role":"sample string 18"},"countyAssignments":[{"countyName":"sample string 1","userId":2,"countyId":3,"assignmentDate":"2025-05-20T14:29:57.5807658-05:00","id":5},{"countyName":"sample string 1","userId":2,"countyId":3,"assignmentDate":"2025-05-20T14:29:57.5807658-05:00","id":5}],"employmentRecord":{"userId":1,"startDate":"2025-05-20T14:29:57.5807658-05:00","endDate":"2025-05-20T14:29:57.5807658-05:00","sickDayCount":3,"vacationDayCount":4,"terminationReason":"sample string 5","addedDate":"2025-05-20T14:29:57.5828439-05:00","lastUpdateDate":"2025-05-20T14:29:57.5828439-05:00","rate":1.0,"employmentTypeId":7,"employmentType":{"id":1,"type":"sample string 2","description":"sample string 3"},"user":{"id":1,"accessFailedCount":2,"email":"sample string 3","emailConfirmed":true,"lockoutEnabled":true,"lockoutEndDateUtc":"2025-05-20T14:29:57.5849274-05:00","passwordHash":"sample string 6","phoneNumberConfirmed":true,"securityStamp":"sample string 8","twoFactorEnabled":true,"userName":"sample string 10","joinDate":"2025-05-20T14:29:57.5849274-05:00","firstName":"sample string 12","lastName":"sample string 13","isSystemUser":true,"accountVerified":true,"acceptedTermsAndConditionsDate":"2025-05-20T14:29:57.5849274-05:00","phoneNumber":"sample string 15","roles":[],"claims":[],"logins":[]},"id":8}}
application/xml, text/xml
Sample:
<SystemUserProfilePageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Pos.PageModels"> <CountyAssignments xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ptd.Model.Pos"> <d2p1:UserCountyAssignmentPo> <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">5</Id> <AssignmentDate xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">2025-05-20T14:29:57.5807658-05:00</AssignmentDate> <CountyId xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">3</CountyId> <UserId xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">2</UserId> <d2p1:CountyName>sample string 1</d2p1:CountyName> </d2p1:UserCountyAssignmentPo> <d2p1:UserCountyAssignmentPo> <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">5</Id> <AssignmentDate xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">2025-05-20T14:29:57.5807658-05:00</AssignmentDate> <CountyId xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">3</CountyId> <UserId xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">2</UserId> <d2p1:CountyName>sample string 1</d2p1:CountyName> </d2p1:UserCountyAssignmentPo> </CountyAssignments> <EmploymentRecord xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities"> <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">8</Id> <d2p1:AddedDate>2025-05-20T14:29:57.5828439-05:00</d2p1:AddedDate> <d2p1:EmploymentType xmlns:d3p1="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.ValueTypes"> <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">1</Id> <d3p1:Description>sample string 3</d3p1:Description> <d3p1:Type>sample string 2</d3p1:Type> </d2p1:EmploymentType> <d2p1:EmploymentTypeId>7</d2p1:EmploymentTypeId> <d2p1:EndDate>2025-05-20T14:29:57.5807658-05:00</d2p1:EndDate> <d2p1:LastUpdateDate>2025-05-20T14:29:57.5828439-05:00</d2p1:LastUpdateDate> <d2p1:Rate>1</d2p1:Rate> <d2p1:SickDayCount>3</d2p1:SickDayCount> <d2p1:StartDate>2025-05-20T14:29:57.5807658-05:00</d2p1:StartDate> <d2p1:TerminationReason>sample string 5</d2p1:TerminationReason> <d2p1:User xmlns:d3p1="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.AuthEntities"> <AccessFailedCount xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">2</AccessFailedCount> <Email xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 3</Email> <EmailConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</EmailConfirmed> <Id xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">1</Id> <LockoutEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</LockoutEnabled> <LockoutEndDateUtc xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">2025-05-20T14:29:57.5849274-05:00</LockoutEndDateUtc> <PasswordHash xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 6</PasswordHash> <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 15</PhoneNumber> <PhoneNumberConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</PhoneNumberConfirmed> <SecurityStamp xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 8</SecurityStamp> <TwoFactorEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</TwoFactorEnabled> <UserName xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 10</UserName> <d3p1:AcceptedTermsAndConditionsDate>2025-05-20T14:29:57.5849274-05:00</d3p1:AcceptedTermsAndConditionsDate> <d3p1:AccountVerified>true</d3p1:AccountVerified> <d3p1:FirstName>sample string 12</d3p1:FirstName> <d3p1:IsSystemUser>true</d3p1:IsSystemUser> <d3p1:JoinDate>2025-05-20T14:29:57.5849274-05:00</d3p1:JoinDate> <d3p1:LastName>sample string 13</d3p1:LastName> </d2p1:User> <d2p1:UserId>1</d2p1:UserId> <d2p1:VacationDayCount>4</d2p1:VacationDayCount> </EmploymentRecord> <UserProfile xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ptd.Model.Pos"> <d2p1:AddressLine1>sample string 12</d2p1:AddressLine1> <d2p1:AddressLine2>sample string 13</d2p1:AddressLine2> <d2p1:Avatar>sample string 11</d2p1:Avatar> <d2p1:Birthday>2025-05-20T14:29:57.5770971-05:00</d2p1:Birthday> <d2p1:CellPhone>sample string 7</d2p1:CellPhone> <d2p1:City>sample string 14</d2p1:City> <d2p1:Email>sample string 8</d2p1:Email> <d2p1:FirstName>sample string 4</d2p1:FirstName> <d2p1:LastName>sample string 5</d2p1:LastName> <d2p1:PersonalEmail>sample string 9</d2p1:PersonalEmail> <d2p1:PhoneNumber>sample string 6</d2p1:PhoneNumber> <d2p1:Role>sample string 18</d2p1:Role> <d2p1:RoleId>17</d2p1:RoleId> <d2p1:SocialSecurity>sample string 10</d2p1:SocialSecurity> <d2p1:State>sample string 15</d2p1:State> <d2p1:SystemUserProfileId>2</d2p1:SystemUserProfileId> <d2p1:UserId>1</d2p1:UserId> <d2p1:UserName>sample string 3</d2p1:UserName> <d2p1:ZipCode>sample string 16</d2p1:ZipCode> </UserProfile> </SystemUserProfilePageModel>