Overview
A user is any individual who can sign in to your organizationβs Partoo account.This guide explains how to configure the Partoo User API so every change in your source-of-truth database; new hires π, role changes π, or departures πͺ automatically syncs to Partoo.
Prerequisites
- Partoo API key with permission to manage users.
- User data prepared in your system (email, role, group/business assignments).
- Familiarity with the Partoo User API reference β Create, Update, Delete endpoints.
Define your integration scope
The right approach depends on your company size and employee turnover:- High-change environments
Automate the full lifecycle: create, update, and delete. This ensures permissions are always up to date. - Low-change environments
Automate only critical routes (e.g., create and delete) and handle rare updates manually.
There is no mandatory minimum: implement the full set or just a subset.
The choice depends on your organizationβs risk tolerance and operational overhead.
The choice depends on your organizationβs risk tolerance and operational overhead.
User lifecycle
Here is the user lifecycle we expect:| Stage | Trigger | Action | API Route |
|---|---|---|---|
| π Joiner | New hire appears in HR/IdP system | Provision account | POST /user |
| π Mover | Role, team, or scope change | Update permissions | POST /user/{user_id} |
| πͺ Leaver | Departure or access no longer required | Revoke access | DELETE /user/{user_id} |
Automated calls keep Partoo perfectly aligned with your source-of-truth at every step.
Joiner, Mover, Leaver β API specification
This section consolidates all requirements for create, update, and delete routes in a single reference.1. Create β POST /users (Joiner)
Define access
GROUP_MANAGERβ populate theaccessesarray with the IDs of groups they must have. Example:
BUSINESS_MANAGERβ populate thebusiness_idsarray with the IDs of the businesses they oversee. Example:
Password setup and user status.
- Let them choose
- You choose
- Invite later
-
Omit
password -
Set
send_invitation: trueResult : status invited β email sent to create a password β becomes active after password setup
SSO-only users
Use when your organization already has Single Sign-On (SSO) configured:- Send
sso_only: truein payload - Login flow:
- User clicks Sign in with your enterprise
- Enters email
- Redirects to your Identity Provider (IdP)
- No Partoo password accepted
2. Update β POST /users/{user_id} (Mover & Joiner corrections)
Use to adjust roles, group/business scope, sidebar visibility, or to toggle sso_only.
Every account has two identifiers:
email(mutable)user_id(immutable, required for update/delete)
user_id:
- Store it at creation time.
- Lookup later via
GET /user/search.- Supports exact or fuzzy match.
- URL-encode special characters in the query string (e.g.,
+β%2B).
A successful update returns the full user object with refreshed permissions in real time.
3. Delete β DELETE /users/{user_id} (Leaver)
- Permanently removes the user record.
- Possibility to just disable the user, via the update route with
"disabled":"true"
End-to-End account activation flow
The diagram below visualizes the complete journey from employee creation in your source-of-truth to account activation (including mover and leaver events).π Joiner β Create
π Mover β Update
πͺ Leaver β Delete
Next steps
- Decide if youβll automate create β update β delete or a subset
- Choose a strategy for handling
user_id(store vs. lookup) - Validate your integration in the Sandbox environment