GetUserInfo
This method is used to fetch current logged in user details.
Method Signature:
GetUserInfo(controlId, async, callback)
Sample Response:
[{"UserIdentity":"4","text":"USER-08AE77CF-AB88-45DC-97C1-180785521AA6",
"UserCode":"requester","UserId":"requester","UserName":"requester",
"Email":"requester@hcl.com","DOB":"","ContactInfo":"","LevelCode1":"","LevelCode2":"","LevelCode3":"","LevelCode4":"","Location":"",
"CountryCode":"","ManagerCode":"","DataSource":"AD","Deptartment":"","UserEntityType":"ORG","UserBillLimit":"","IsActive":"Y","IsLocked":"N","SuccessfulLoginTime":"5/15/2020 2:19:39 PM","FailedLoginTime":"5/14/2020 5:57:02 PM","FailCount":"0","CustomField1":"","CustomField2":"","CustomField3":"","CustomField4":"",
"CustomField5":"","CustomField6":"","CustomField7":"","CustomField8":"","CustomField9":"","CustomField10":"","OrgEntityid":"ORG-29A1B191-7720-44D8-9302-4F89DAC9C896","ProviderEntityID":"","CreatedBy":"","CreatedOn":"10/30/2019 11:12:51 AM","ModifiedBy":"","ModifiedOn":"10/30/2019 11:12:51 AM",
"ResetPasswordDate":"7/27/2020 7:09:08 AM","IsApiUser":"N","IsComponentAccess":"N"}]
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. |