GetUsersByOrganization
This method is used to fetch all the Users details for logged in Organization.
Method Signature:
GetUsersByOrganization(controlId, async, callback, addlparam)
Sample Response:
[{
"EntityID": "USER-8C5E833F-9C67-4AC5-A6A8-0635536EBFCA",
"UserId": "enter user_id",
"UserName": "enter username",
"Email": "enter email",
"RoleName": "Requester",
"ManagerCode": "",
"CustomField1": "",
"CustomField2": "",
"CustomField3": "",
"CustomField4": "",
"CustomField5": "",
"CustomField6": "",
"CustomField7": "",
"CustomField8": "",
"CustomField9": "",
"CustomField10": ""
}]
Parameter Details:
| Parameter Name | Type | Mandatory | Description |
|---|---|---|---|
| controlId | String | N |
Id of “Select control” to be populated. If Id is passed, then control will be populated else “Result set” will be returned in JSON format. |
| async | Boolean | N |
In case it’s False: Function will be called in synchronous mode. i.e., Current execution will wait for method execution to complete In case it’s True: Function will be called asynchronously. Execution will not wait for method execution completion. It will jump to next statement. |
| callback | Function | N | User can pass function name that can get executed on completion of Parent function call. |
| addlparam | Object | N |
Addlparam is used for filtering and sorting the records. It contains 3 properties filter/sortby/sortorder. To Filter: To filter records based on column name received from output. e.g., filter="keyname='keyvalue'" To Sort By: To sort the data based on column name. e.g., sortby="keyname" To Sort Order: To define sorting order either ASC (Ascending) or DESC (descending). e.g., sortorder="ASC” |