PEACE Employee Management
Sign in with your Microsoft 365 account
| Emp ID | Name | Department | Position | Leader | Status | Sig |
|---|---|---|---|---|---|---|
|
| ||||||
?action=ACTION_NAME&token=YOUR_TOKEN to the API URL.
| Action | Parameters | Description |
|---|---|---|
getAll | - | Active employees only |
getAllEmployees | - | All employees (incl. inactive + signature URL) |
getByEmail | &email=xxx | Single employee by email |
getByManager | &managerId=xxx | Team members under a manager |
isActive | &email=xxx | Check if employee is active |
getSignature | &email=xxx | Signature Drive URL |
getSignatureImage | &email=xxx | Signature as base64 image |
getPhoto | &email=xxx | Profile photo as base64 image |
checkSecretExpiry | - | Days until Azure secret expires |
token, action, and adminEmail.
| Action | Body Fields |
|---|---|
updateEmployee |
email (required), empId, empType, department, jobTitle, managerId (email), mobilePhone, businessPhone, companyName, officeLocation, hireDate, birthDate, gender, division, nickname, idCard, nameTH |
uploadSignature |
email (required), fileData (base64 PNG) |
triggerSync |
(no extra fields needed) |
adminEmail in body. The email must be in the ADMIN_EMAILS list in Script Properties.
| Field | Type | Description |
|---|---|---|
| empId | string | Employee ID |
| displayName | string | Full name |
| string | Email address | |
| department | string | Department name |
| jobTitle | string | Job title |
| managerId | string | Manager's employee ID |
| managerName | string | Manager's name |
| managerEmail | string | Manager's email |
| employeeType | string | Employee type |
| status | string | active / inactive |
| mobilePhone | string | Mobile phone number |
| businessPhone | string | Business/office phone |
| companyName | string | Company name |
| officeLocation | string | Office/Project (comma-separated) |
| hireDate | string | Hire date (ISO format) |
| yearsOfService | string | Years of service (e.g. "1 yr 3 mo 20 day") |
| birthDate | string | Birth date (YYYY-MM-DD) |
| gender | string | M = Male, F = Female |
| division | string | Division / สายงาน |
| nickname | string | Nickname / ชื่อเล่น |
| idCard | string | ID Card number / เลขบัตรประชาชน |
| nameTH | string | Full name in Thai / ชื่อไทย |
| excluded | string | "true" = hidden from getAll API |
| signatureUrl | string | Signature image URL |
| syncedAt | string | Last sync timestamp |