About LastPass
The LastPass integration connects to your LastPass Business account through the LastPass Enterprise API. Workflows can list every user with their status, admin flag, groups and last login, and count how many are enabled, disabled or have never logged in. Use this to track LastPass seats and find licenses to reclaim. Authentication: Your company ID (CID) and Enterprise API provisioning hash. The Enterprise API expects both inside the body of every request rather than in a header. Serval stores the provisioning hash encrypted and adds both values to each request on its side, so they never appear in a workflow or in run history. They are sent only tohttps://lastpass.com/enterpriseapi.php or https://lastpass.eu/enterpriseapi.php, depending on your data center.
Data sync: On demand. Serval reads from LastPass when a workflow runs and does not run a background sync.
Before you begin
You need:- A LastPass Business account and a LastPass admin who can view the Enterprise API settings.
- The company ID (CID), shown in the account menu of the LastPass Admin Console.
- The Enterprise API provisioning hash, set in the LastPass Admin Console. It’s different from the AD Connector API key and the LastPass API key.
Connect in Serval
1
Open the integration
In Serval, go to Integrations, find LastPass, and select Connect.
2
Choose the data center
Under Data center, choose lastpass.com or lastpass.eu to match the address of your LastPass Admin Console.
3
Enter the credentials
Enter the Company ID (CID) and the Provisioning hash, then save.
4
Check the connection
Run the Test LastPass Connection healthcheck. It reads one user from LastPass to confirm the CID, provisioning hash and data center.
Use the connection
Find inactive users
Install the List Inactive LastPass Users workflow. It returns enabled users who haven’t logged in for a number of days (90 by default), with each user’s admin flag, groups and last login. Users who have never logged in are always included, and disabled users are left out because they already can’t sign in. If LastPass sends a last login Serval can’t read, that user is left out of the list and counted underlastLoginUnknownCount, so an active user is never reported as inactive.
Build your own workflows
Workflows can send any Enterprise API command through the LastPass API request action, for examplegetuserdata to read users and groups. Because the same action can also send commands that disable or delete users, Serval treats every call through it as one that can change LastPass. The List LastPass License Holders action only reads users, and Serval treats it as read-only.
The Enterprise API reports users and their status, but not how many licenses you’ve purchased. To compare purchased seats with users, record the purchased quantity in your Software & Licensing database.
Troubleshooting
- The healthcheck fails: Check the CID, the provisioning hash and the data center. The provisioning hash is not the AD Connector or LastPass API key.
- Rotate the provisioning hash: Update the connection with the new hash. Leaving the masked value in place keeps the current one.
- Connect another LastPass account or data center: Add a new connection. An existing connection stays bound to its CID and data center.

