Snipe-IT
Ploy connects to your hosted Snipe-IT tenant with an API token and reads its users, their permission level and the permission groups they belong to. It changes users and group membership in Snipe-IT only when you ask it to.
This integration is in beta
The Snipe-IT integration is in beta. It was built from Snipe-IT's API documentation and has not yet been run against a real Snipe-IT tenant, so the first connections are watched closely by the Ploy team. Beta does not limit what the integration can do.
The first step of setup is a consent checkbox. Ticking it lets Ploy capture redacted error data when a request to Snipe-IT fails: the error response Snipe-IT sends back, with names, emails, tokens and other secrets removed. Ploy uses it only to fix problems with this integration. You must tick the box to continue.
What Ploy shows
Every user in your Snipe-IT tenant, with their email address and username. Users who have been deleted in Snipe-IT drop out.
Who can sign in to Snipe-IT. A user whose sign-in is turned off in Snipe-IT is shown without access.
Each user's permission level on Snipe-IT: Superuser, Admin or User. Ploy reads the level set on the user themselves. A user who is an admin only because of a group they belong to shows as User, and the group shows on its own page.
Every Snipe-IT permission group, and who is in each one.
Ploy does not read assets, licences, accessories or who has them checked out, and it does not read Snipe-IT's activity report.
What Ploy can change
Create a user by email, with their first and last name. The email address is also their username. Ploy sets a random password nobody knows, so the person signs in with Snipe-IT's "forgot password" link or your single sign-on. If a user already holds that email address, this counts as done.
Turn off a user's sign-in (suspend) and turn it back on.
Delete a user. Snipe-IT refuses while the user still has assets, licences or accessories checked out, or still manages other users or locations. Check those in or reassign them first. Deleting someone who is already gone counts as done.
Give or remove Superuser or Admin from the Snipe-IT app's access in Ploy. A user holds one level at a time, so giving another swaps it. Removing Superuser or Admin leaves the user at User.
Add or remove a user from a permission group from the group's page in Ploy.
Ploy will not turn off sign-in for the user whose token connects Ploy, because that would stop the token working.
Before you start
This integration is for Snipe-IT tenants hosted by Snipe-IT at an address ending in snipeitapp.com, for example acme.snipeitapp.com.
You need a Snipe-IT user with the Superuser permission, or at least permission to view, create, edit and delete users. Ploy acts with that user's permissions, so use an account you trust and treat the token like a password.
If your tenant requires two-factor authentication, the token's user must have finished setting it up, or Snipe-IT refuses the token.
Create the API token in Snipe-IT
Sign in to Snipe-IT as the user Ploy should act as.
Open your own account settings and find the API keys page.
Create a new personal access token and name it "Ploy".
Copy the token straight away. Snipe-IT shows it only once.
Connect Snipe-IT in Ploy
In Ploy, go to Integrations, find Snipe-IT and click Connect.
Tick the beta consent checkbox.
Enter your Snipe-IT address, for example acme.snipeitapp.com, or just acme.
Paste the API token.
Click Test connection. Ploy reads your user list to check the address and token work.
Save. The first scan starts straight away and runs every hour.
Things to know
Each Snipe-IT tenant is its own connection. To connect another tenant, add another Snipe-IT connection with a token from that tenant.
If the user who created the token is deleted, has sign-in turned off, or deletes the token, scans stop. Create a new token and update the Snipe-IT connection in Ploy.
Snipe-IT limits how many requests a token can make each minute. Ploy waits and retries when it reaches the limit.
Troubleshooting
Snipe-IT rejected that token: the token is wrong, has been deleted, or belongs to a user whose sign-in is turned off. Snipe-IT gives the same answer for all three. Create a new token and paste it in full.
That token cannot list your Snipe-IT users: give the token's user permission to view users, or the Superuser permission.
Snipe-IT could not be reached at that address: check the address matches the one you sign in at.
Snipe-IT refused to delete the user: they still have something checked out or still manage people or locations. Check everything in or reassign it in Snipe-IT, then try again.