Show a link to the manager in employee profiles
A ready-made API integration: all that's left is to run it

Script: Show a link to the manager in Pachca profiles · Language: Python · Difficulty: Medium · Author: Ivan Dyakonov, project manager
About the script
If your employees' profiles show their manager's name, the profile will now also show a clickable link to that manager in Pachca. You can jump straight to their profile, which makes finding colleagues much easier and clearer. For more ready-made automation solutions, see our overview of Pachca integrations.
Only a workspace Administrator or Owner in Pachca can set up this integration
How to prepare for the integration
Create a "Manager link" field
- Go to Members in the left sidebar
- Click Settings in the top right corner
- Click Add field
- Enter the name "Manager link"
- Choose the Link field type
- Click Save
Create a "Manager" field the same way if you don't have one yet
- Make sure to fill it in: if the field is empty, the manager link won't be added
Set up the "Manager" and "Manager link" fields so that all employees can see them
- Go to Members in the left sidebar
- Click the gear icon at the top of the table
- In the window that opens, click these fields at the bottom
- Drag them into the right order
Integration code
The script is written in Python. You can copy it and run it in a development environment such as PyCharm
Notes on the script
- At the top of the code, replace acces_token in the header with your own (available to administrators: you'll find it under Automations → API in the left sidebar)
- You'll need to run the script again whenever you add employees. To avoid doing it manually, you can host it on Yandex Cloud Functions and run it on an event or on a timer, for example
- Make sure every employee has the First name and Last name fields filled in. Otherwise, the script will throw an error


