GET List User

This API will fetch list of the users for the specified company.

Request Attributes

API Content Type: JSON

Head

ATTRIBUTE DESCRIPTION
x-access-token
string
mandatory
Token generated from the authentication api.
Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.TU5NzgyMDA1N30.9eO_xh eyJEYXRhIjp7InVzZXJpZCI6IjY3NCIsImVtYWlsIjoiYWFhYWFhYWFhYWjuunGJQ YmwuY29tIiwia2V5IjoidGVzdGluZ0tleSJ9LCJpYXQiOjE1OTc3NDA4NTpj6gc8dM csIFhY7n1mV4cUBxa2P3ICI6M2VyWq19OzuHAefeTEj

body

ATTRIBUTE DESCRIPTION
company_id
string
mandatory
Example:
It is the Id of the company for which user's list will be fetched.
ZmE1MjAI3Nzc4MmUyYjYtZTtyMDE4NIY0ZS00MTY3LWNjTM1Ng==
user_id
string
mandatory
Example:
It is Id of the user, it can be fetched from developer console in company module in KONSIGN.
ZmE1MjAI3Nzc4MmUyYjYtZTtyMDE4NIY0ZS00MTY3LWNjTM1Ng==
page_no
integer
mandatory
Example:
No. of Page
0
pagesize
integer
mandatory
Example:
Size of the page
10

Response Attributes

API Content Type: JSON

body

ATTRIBUTE DESCRIPTION
statuscode
string(3)
This is the status code corresponding to a particular message and is returned to the user. The different status codes corresponding to this API are mentioned below
Example: 200
status
boolean
This parameter indicates the status of API call.
Possible Values: true or false
message
string
This parameter indicates the message of API call.
Example: User details get successfully.
array of objects
This parameter gives the information about the result of the API response.
Attribute Description
RowIndex
string
Row Index of the user.
Example: 1
roles
string
Roles of the user.
Example: Admin
UniqueId
string
It is the Unique Id of the user.
Example: ZmE1MjAI3Nzc4MmUyYjYtZTtyMDE4NIY0ZS00MTY3LWNjTM1Ng==
status
boolean
Status
Example: true
ReamininSignCase
integer
Remaining Sign Cases for the user.
Example: 0
RemainingTemplate
integer
Remaining Templates for the user.
Example: 0
TotalTemplate
integer
Total Templates for the user.
Example: 0
TotalSignCase
integer
Total Sign cases for the user.
Example: 0
EmailAddress
string
Email address of the user.
Example: govyanshi.upadhyay@konze.com
Username
string
Username
Example: Govyanshi
usertype
string
It is the email address for the owner of the company.
Example: govyanshi.upadhyay@konze.com
DepartmentName
string
Department name in which user exists.
Example: HR
IsActive
integer
It shows whether the account is active or deactivated.
Example: “0” for inactive, “1” for Active

Response Codes and Messages

statuscode status Description
200
true
Success
422
false
Invalid parameter
500
false
System error
https://console.konsign.com/api/user/getuserlist?company_id=222&user_id=940&pageno=0&pagesize=10
https://console.konsign.com/api/user/getuserlist?company_id=222&user_id=940&pageno=0&pagesize=10
REQUEST RESPONSE

                                                    var request = require('request');
                                                    var options = {
                                                    'method': 'GET',
                                                    'url': 'https://console.konsign.com/api/user/getuserlist?company_id=222&user_id=940&pageno=0&pagesize=10',
                                                    'headers': {
                                                        'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJEYXRhIjp7InVzZXJpZCI6IjU0NiIsImVtYWlsIjoiaGl0ZXNoLmpvc2hpQGtvbnplLmNvbSIsImFwcEtleSI6IjNhNjI4N2U3LTNkOTItNDVjNy04YTk2LTg0MjAyMjA0MDc1MiIsImtleSI6InByb2R1Y3Rpb25LZXkifSwiaWF0IjoxNjgzMDExNjU5LCJleHAiOjE2ODMwOTA4NTl9.qx4DOIupSn2CnEPzM4KjXoceXsULF8eUogxBHbI4hmk'
                                                    }
                                                    };
                                                    request(options, function (error, response) {
                                                    if (error) throw new Error(error);
                                                    console.log(response.body);
                                                    });
												
											

													var client = new HttpClient();
                                                    var request = new HttpRequestMessage(HttpMethod.Get, "https://console.konsign.com/api/user/getuserlist?company_id=222&user_id=940&pageno=0&pagesize=10");
                                                    request.Headers.Add("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJEYXRhIjp7InVzZXJpZCI6IjU0NiIsImVtYWlsIjoiaGl0ZXNoLmpvc2hpQGtvbnplLmNvbSIsImFwcEtleSI6IjNhNjI4N2U3LTNkOTItNDVjNy04YTk2LTg0MjAyMjA0MDc1MiIsImtleSI6InByb2R1Y3Rpb25LZXkifSwiaWF0IjoxNjgzMDExNjU5LCJleHAiOjE2ODMwOTA4NTl9.qx4DOIupSn2CnEPzM4KjXoceXsULF8eUogxBHbI4hmk");
                                                    var response = await client.SendAsync(request);
                                                    response.EnsureSuccessStatusCode();
                                                    Console.WriteLine(await response.Content.ReadAsStringAsync());
												
											
												{
													"head": {
														"responseTimestamp": "1526969112101",
														"version": "v1",
														"clientId": "C11",
														"signature": "TXBw50YPUKIgJd8gR8RpZuOMZ+csvCT7i0/YXmG//J8+BpFdY5goPBiLAkCzKlCkOvAQip/Op5aD6Vs+cNUTjFmC55JBxvp7WunZ45Ke2q0="
													},
													"body": {
														"resultInfo": {
															"resultStatus": "S",
															"resultCode": "0000",
															"resultMsg": "Success"
														},
														"txnToken": "fe795335ed3049c78a57271075f2199e1526969112097",
														"isPromoCodeValid": false,
														"authenticated": false
													}
												}