Segment
Connect Segment to Ploy to see everyone in your Segment workspace, the roles each person holds on the workspace and on each source, warehouse, function and space, and who is in each user group. Ploy can also invite people, give and remove roles, add and remove people in a user group, and remove people from the workspace.
This integration is in beta
The Segment integration is in beta. It was built from Segment's API documentation and has not yet been checked against a live Segment workspace, so some details may need adjusting once customers connect it. 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 Segment fails: the error response Segment sends back, with personal details, tokens and other secrets removed. Ploy uses it only to fix problems with this integration. You must tick the box to continue.
What Ploy reads
Every user in the connected workspace, with their name and email address
The roles each user holds on the whole workspace
The roles each user holds on a specific source, warehouse, function or space, shown on that source, warehouse, function or space in Ploy
On Segment's Business plan, every user group and who is in it
Ploy does not read pending invitations, roles given to a user group, or the audit trail. A source, warehouse, function or space appears in Ploy once someone holds a role on it.
What Ploy can change
Invite a person to the workspace. By email, optionally with a workspace role. Segment creates the user once they accept the invitation. Inviting someone who is already in the workspace, or already invited, counts as done.
Give or remove a role. On the workspace, or on one source, warehouse, function or space, one role at a time. A person can hold several roles. Removing a role never removes the person from the workspace. A role can be given from Ploy once someone in the workspace holds it.
Change a person's workspace role. From a flow, which replaces the roles they hold on the whole workspace with the one you choose and keeps their other roles.
Add or remove a person in a user group. From the group's page in Ploy, on the Business plan.
Remove a person from the workspace. Removing someone who is already gone counts as done. Segment has no way to suspend a user, so removal is the only way to take away access.
Before you start
You need to be a Workspace Owner in Segment.
In Segment, open Settings, then Access Management, then Tokens.
Create a Public API token. Create it as a Workspace Owner so it can read users and change their roles, group memberships and access.
Copy the token. Segment shows it only once.
Note which region your workspace is hosted in: the United States or the European Union.
Connect Segment
In Ploy, open Integrations, find Segment and click Connect.
Tick the beta consent checkbox.
Select your Segment region.
Paste the Public API token.
Choose whether your Segment plan includes user groups. User groups are part of Segment's Business plan; choose No on other plans.
Click Test connection, then save.
A token belongs to one workspace. To scan another workspace, add another connection.
Troubleshooting
Segment rejected that token: check the token was copied in full, has not been removed, and that the region matches your workspace.
That token cannot read your workspace's users: create the token as a Workspace Owner.
User groups are not showing: check the Segment setup in Ploy says your plan includes user groups, and that your workspace is on the Business plan.