Tray.ai
Connect Tray.ai to Ploy to see who is in your Tray.ai organization with their organization role, who belongs to each shared workspace with their workspace role, add and remove people, and give or take roles.
This integration is in beta
Tray.ai is a beta integration. It was built from Tray.ai's API documentation and has not yet been run against a customer organization, so the first scans are checked by the Ploy team.
The first step of setup is a consent checkbox. Ticking it lets Ploy record redacted error details when Tray.ai answers a request with an error. Redacted means names, email addresses, tokens and other personal or secret values are removed before anything is stored. Ploy uses these details only to fix the integration.
What you need
A Tray.ai organization, and to know which data region it runs in: United States (app.tray.io), Europe (app.eu1.tray.io) or Asia Pacific (app.ap1.tray.io).
An organization Owner or Admin, to create the API user and its token.
A Shared workspace to create the API user in. Tray.ai only allows API users and tokens in Shared workspaces.
Step 1: Create an API user and token
In Tray.ai, open a Shared workspace, then Settings, then Tokens.
Create an API user and give it the organization Admin role. Ploy needs Admin to list users, workspaces and roles, and to invite people, change roles and remove people. A token with a lower role scans less and cannot make changes.
Create a token for that API user and copy it. Tray.ai shows it only once. Note when it expires and replace it in Ploy before then.
Step 2: Connect Tray.ai in Ploy
In Ploy, open Integrations, find Tray.ai and select Connect.
Tick the beta consent checkbox.
Choose your Tray.ai region. A token only works in its own region.
Paste the API token.
Choose how Ploy adds new people:
Send an invitation email: the person joins once they accept the email. Tray.ai allows 100 invitations a day per organization.
Create the account directly: for organizations that sign in through SSO. No email is sent and the account exists at once.
Select Test connection, then save.
One connection covers one organization. Add another connection for each further organization.
What Ploy reads
Users: everyone in the organization, including API and integration accounts, with their organization role (for example Admin, Contributor or Viewer).
Organization roles: every role your organization has, so any of them can be given from Ploy.
Shared workspaces: every Organization, Shared and Embedded workspace, who belongs to each with their workspace role, and the roles each workspace offers. Personal workspaces are not read: each holds only its owner.
Ploy scans every six hours. Tray.ai has no suspended state, so someone removed from the organization loses their access in Ploy on the next scan.
What Ploy can change
Add a person, by invitation or direct creation as chosen in step 2, with an organization role. With no role chosen, Ploy uses Viewer. Someone already in the organization is left as they are.
Change a person's organization role, or give and remove one role at a time from the Tray.ai app page. Removing Admin or Contributor moves the person to Viewer; Viewer is the lowest role, so to take that away, remove the person.
Remove a person from the organization. Tray.ai keeps the files in their personal workspace by moving them into a new shared workspace named after them.
Give or remove a workspace role from the workspace's page in Ploy. Giving the first role adds the person to the workspace; removing it takes them out. This needs the entitlements feature in Ploy.
Good to know
Ploy never gives, takes or changes the Owner role, and does not remove the Owner. Tray.ai keeps exactly one Owner; transfer ownership in Tray.ai.
People created through single sign-on are given the Contributor role by Tray.ai; change their role from Ploy afterwards if needed.
Tray.ai Embedded end users (the customers of a product built on Tray.ai Embedded) are not read: they have no access to your Tray.ai organization.
Ploy does not read last sign-in, two-factor status or an audit log, because Tray.ai's API does not provide them.
If the token expires or is deleted, scans stop and Ploy shows the connection as needing attention. Create a new token and update the connection.