This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Configuring PeopleHR Operations
To use the PeopleHR connector, add the <peoplehr.init>
element in your configuration before carrying out any other PeopleHR operations.
Information of getting API Key
Login to the created People HR account and go to Settings >> API >> Under API Key Management >> Create an API Key.
Before you start performing various operations with the connector, make sure to import the PeopleHR certificate to your ESB client keystore.
Follow the below mentioned steps to add valid certificate to access PeopleHR API over https into the ESB client keystore:
- Extract the certificate from browse by navigating to ' https://{instance_name}.peoplehr.net ' and click the lock icon on the address bar to view the certificate.
- Place the downloaded certificate into "PeopleHR_CONNECTOR_HOME/src/test/resources/keystores/products" folder.
- Navigate to "PeopleHR_CONNECTOR_HOME/src/test/resources/keystores/products/" using command prompt and execute the following command.
This command will import PeopleHR certificate in to keystore. Give "wso2carbon" as password.To import the certificate give "wso2carbon" as password. Press "Y" to complete certificate import process.
keytool -importcert -file CERT_FILE_NAME -keystore wso2carbon.jks -alias -alias "CERT_NAME"
<peoplehr.init> <apiUrl>{$ctx:apiUrl}</apiUrl> <apiKey>{$ctx:apiKey}</apiKey> </peoplehr.init>
Properties
-
apiUrl:
The URL of the PeopleHR REST API. -
apiKey:
The API key associated with the user account.
Special Note
If required to clear the fields of the optional parameters of the updateTimeSheet, updateEmployee, updateProjectTimesheet, and updateAbsenceRecord methods, the user has to send a space character (“ ”).
Now that you have connected to PeopleHR, use the information in the following topics to perform various operations with the connector.
- Working with Absence in PeopleHR
- Working with Employees in PeopleHR
- Working with Project Timesheets in PeopleHR
- Working with Salary in PeopleHR
- Working with Timesheets in PeopleHR
- Working with Queries in PeopleHR