English
getCurrentEmployee
About 148 wordsLess than 1 minute
2025-12-16
This method returns information about the currently logged-in user.
Syntax: FxUI.organization.getCurrentEmployee()
Example
const employee = FxUI.organization.getCurrentEmployee();
console.log(employee);Return Value
This method returns user information, as shown below:
{
"uploadFileSizeLimit": 100,
"employeeID": 0,
"fullName": "",
"gender": "M",
"groupIDs": [
2508
],
"id": 9213,
"isAsterisk": false,
"isStop": false,
"name": "",
"nickName": "",
"post": "",
"profileImage": "",
"spell": "",
"type": "p",
"workingState": "",
"employeeAsteriskIds": [],
"departmentAsteriskIds": [],
"account": "",
"allCompanyPrincipalId": 3,
"companyName": "Beijing Fxiaoke Technology Co., Ltd.",
"department": "",
"enterpriseAccount": "fs",
"enterpriseID": 1,
"enterpriseType": 0,
"epTag": "",
"functionPermissions": [],
"inVipService": true,
"isAdmin": false,
"isAllowSetOwnLeader": false,
"isDemoAccount": false,
"isInitialPassword": false,
"isPhoneBound": true,
"mobile": "",
"planTotalCount": 0,
"userAppLauguageConfig": "zh-CN",
"workCircleEnterpriseName": "Beijing Fxiaoke Technology Co., Ltd.",
"profileImagePath": "",
"enterpriseId": 1,
"employeeId": 0,
"areaCode": "+86",
"qq": "",
"email": "",
"telephone": "",
"enterpriseName": "Beijing Fxiaoke Technology Co., Ltd.",
"allCompanyDefaultString": "Entire Company",
"isExperience": false,
"mainDepartment": 0,
"departmentIds": [],
"allowExportAddressBook": true,
"roleCodes": [
{
"code": "",
"appId": "facishare-system"
}
],
"language": "zh-CN",
"supportsDST": false,
"translateContentAs": "",
"enterpriseNameMultiLang": "Beijing Fxiaoke Technology Co., Ltd.",
"enterpriseShortNameMultiLang": "Fxiaoke"
}