GET visit/getPersonByName?Name={Name}&UseDiacritics={UseDiacritics}&PageNumber={PageNumber}&PageSize={PageSize}&Token={Token}
Retrieve personal data for each person defined by name. Agenda "Visit" has to be licensed. Privilege "View" of licensed agenda "Organizational structure" required. Paging supported. Data may also be restricted by record permission "View" of agenda "Persons". Paging supported
Request Information
Authorization
- Authorization by token required
Availability
- Method disabled by configuration
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
Name |
Searched person name in format "name" + "surname". The symbol % can be used as wildcard. |
string |
Required String length: inclusive between 0 and 200 |
UseDiacritics |
Optional parameter may be omitted. Search data by using case sensitivity and diacritical signs or not. The meaning is: 1 - with diacritical signs and case sensitivity; 0 - without diacritical signs and case insensitivity. Default value is 0 |
integer |
Range: inclusive between 0 and 1 |
PageNumber |
Optional parameter may be omitted. All records are displayed when is omitted otherwise specific page is displayed |
integer |
Matching regular expression pattern: ([0-9]+) |
PageSize |
Optional parameter may be omitted. Define number of records in the page. |
integer |
Matching regular expression pattern: ([0-9]+) |
Token |
The action is authorized by this token. Token should generated by calling action "POST login". Expiration time of each token is 20 seconds |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Response Codes
Http Code | Error Number | Description |
---|---|---|
200 request succesfully done | 0 | Successfully done |
400 bad request | 1002 | Entry parameter missing or parameter bindigs failed |
401 unauthorized | 1000 | Token {0} not found |
401 unauthorized | 1001 | Token {0} already expired |
401 unauthorized | 1006 | Ip filter violated for ip client address [{0}] |
401 unauthorized | 1007 | Ip filter [{0}] parsing failed |
401 unauthorized | 1008 | Request rate policy violated for [{0}] |
403 server refuses fo fulfill the rquest | 1101 | Privilege View of agenda Persons violated for [{0}] |
403 server refuses fo fulfill the request | 8 | Not licensed |
404 required resource does not exist on the server | 1100 | PersonId [{0}] not found |
415 unsupported Media Type | The request entity has a media type which the server or resource does not support. Only application/json and application/xml are supported | |
500 internal error | Server exception description |
Resource Description
PersonGetAllRespName | Description | Type | Additional information |
---|---|---|---|
Persons | Collection of Person |
None. |
|
Paging | PagingResp |
None. |
Response Formats
application/json
{"Persons":[{"PersonId":"100200300","Name":"John","Surname":"Doo","OrganizationStructure":"Structure - Company - Office 1","Desc":null,"TimeLastChange":"\/Date(1732183513694)\/","Presence":1,"Lock":0,"Email":"","LoginName":"","EmployeePosition":"","DegreeInFrontName":null,"DegreeAfterName":null,"Sex":0,"UdsCollection":null},{"PersonId":"100200301","Name":"James","Surname":"Smith","OrganizationStructure":"Structure - Company - Office 1","Desc":null,"TimeLastChange":"\/Date(1732183513694)\/","Presence":0,"Lock":1,"Email":"james@outlook.com","LoginName":"xsmith","EmployeePosition":"","DegreeInFrontName":null,"DegreeAfterName":null,"Sex":0,"UdsCollection":null},{"PersonId":"100200302","Name":"Ian","Surname":"Parish","OrganizationStructure":"Structure - Company - Office 2","Desc":null,"TimeLastChange":"\/Date(1732183513694)\/","Presence":1,"Lock":0,"Email":"parish@outlook.com","LoginName":"parish","EmployeePosition":"thp","DegreeInFrontName":null,"DegreeAfterName":null,"Sex":0,"UdsCollection":null}],"Paging":{"CurrentPage":5,"PageSize":3,"TotalCount":15,"TotalPages":5}}
application/xml
<Response> <Persons> <Person> <PersonId>100200300</PersonId> <Name>John</Name> <Surname>Doo</Surname> <TimeLastChange>2024-11-21T10:05:13.6948934Z</TimeLastChange> <Lock>0</Lock> <Email /> <LoginName /> <EmployeePosition /> <Sex>0</Sex> </Person> <Person> <PersonId>100200301</PersonId> <Name>James</Name> <Surname>Smith</Surname> <TimeLastChange>2024-11-21T10:05:13.6948934Z</TimeLastChange> <Lock>1</Lock> <Email>james@outlook.com</Email> <LoginName>xsmith</LoginName> <EmployeePosition /> <Sex>0</Sex> </Person> <Person> <PersonId>100200302</PersonId> <Name>Ian</Name> <Surname>Parish</Surname> <TimeLastChange>2024-11-21T10:05:13.6948934Z</TimeLastChange> <Lock>0</Lock> <Email>parish@outlook.com</Email> <LoginName>parish</LoginName> <EmployeePosition>thp</EmployeePosition> <Sex>0</Sex> </Person> </Persons> <Paging> <CurrentPage>5</CurrentPage> <PageSize>3</PageSize> <TotalCount>15</TotalCount> <TotalPages>5</TotalPages> </Paging> </Response>
text/json
{ "Persons": [ { "PersonId": "sample string 1", "Desc": "sample string 5", "Lock": 8, "Email": "sample string 9", "LoginName": "sample string 10", "EmployeePosition": "sample string 11", "DegreeInFrontName": "sample string 12", "DegreeAfterName": "sample string 13", "Sex": 14, "UdsCollection": [ { "SystemName": "sample string 1", "Name": "sample string 2", "Value": "sample string 3", "IsExtern": 4, "DataType": "sample string 5" }, { "SystemName": "sample string 1", "Name": "sample string 2", "Value": "sample string 3", "IsExtern": 4, "DataType": "sample string 5" } ] }, { "PersonId": "sample string 1", "Desc": "sample string 5", "Lock": 8, "Email": "sample string 9", "LoginName": "sample string 10", "EmployeePosition": "sample string 11", "DegreeInFrontName": "sample string 12", "DegreeAfterName": "sample string 13", "Sex": 14, "UdsCollection": [ { "SystemName": "sample string 1", "Name": "sample string 2", "Value": "sample string 3", "IsExtern": 4, "DataType": "sample string 5" }, { "SystemName": "sample string 1", "Name": "sample string 2", "Value": "sample string 3", "IsExtern": 4, "DataType": "sample string 5" } ] } ], "Paging": { "CurrentPage": 1, "PageSize": 2, "TotalCount": 3, "TotalPages": 4 } }
text/xml
<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Persons> <Person> <PersonId>sample string 1</PersonId> <Desc>sample string 5</Desc> <Lock>8</Lock> <Email>sample string 9</Email> <LoginName>sample string 10</LoginName> <EmployeePosition>sample string 11</EmployeePosition> <DegreeInFrontName>sample string 12</DegreeInFrontName> <DegreeAfterName>sample string 13</DegreeAfterName> <Sex>14</Sex> <UdsCollection> <UdsOut> <SystemName>sample string 1</SystemName> <Name>sample string 2</Name> <Value>sample string 3</Value> <IsExtern>4</IsExtern> <DataType>sample string 5</DataType> </UdsOut> <UdsOut> <SystemName>sample string 1</SystemName> <Name>sample string 2</Name> <Value>sample string 3</Value> <IsExtern>4</IsExtern> <DataType>sample string 5</DataType> </UdsOut> </UdsCollection> </Person> <Person> <PersonId>sample string 1</PersonId> <Desc>sample string 5</Desc> <Lock>8</Lock> <Email>sample string 9</Email> <LoginName>sample string 10</LoginName> <EmployeePosition>sample string 11</EmployeePosition> <DegreeInFrontName>sample string 12</DegreeInFrontName> <DegreeAfterName>sample string 13</DegreeAfterName> <Sex>14</Sex> <UdsCollection> <UdsOut> <SystemName>sample string 1</SystemName> <Name>sample string 2</Name> <Value>sample string 3</Value> <IsExtern>4</IsExtern> <DataType>sample string 5</DataType> </UdsOut> <UdsOut> <SystemName>sample string 1</SystemName> <Name>sample string 2</Name> <Value>sample string 3</Value> <IsExtern>4</IsExtern> <DataType>sample string 5</DataType> </UdsOut> </UdsCollection> </Person> </Persons> <Paging> <CurrentPage>1</CurrentPage> <PageSize>2</PageSize> <TotalCount>3</TotalCount> <TotalPages>4</TotalPages> </Paging> </Response>