Rewst and MSP Automation
BetaHow a Rewst workflow (or any automation platform) drives Inaya identity actions and receives Inaya events, with reference workflows, and an honest statement of what has and has not been tested.
Works with any automation platform through the API. Rewst verification pending.
Rewst, like any automation platform, drives Inaya with ordinary signed HTTPS requests, and that is what has been verified: on 2026-09-26 the identity API was exercised from outside against the live site with a service credential (dry run, joiner, idempotent replay, leaver with all six revocation steps verified, and refusal of restore, credential creation and cross-organization access). Automated tests cover the same endpoints. No real Rewst workspace has been used, so Rewst itself is UNVERIFIED: its configuration screens, secret handling and response mapping have not been exercised. The reference workflows below describe the calls a Rewst workflow makes; they are not an importable Rewst export.
Two directions
| Direction | Mechanism |
|---|---|
| Rewst → Inaya | An HTTP step calls the identity API with a service credential, or posts a signed event to /api/integrations/identity/webhooks/<provider id>. |
| Inaya → Rewst | Add an outbound webhook (Identity & Access → Events out) pointing at a Rewst webhook trigger. Events: access.revoked, sync.failed, sync.drift_detected, credential.revoked, organization.mapping_changed. Signed the same way. |
Credentials
Create a credential with only the scopes the workflow needs: identity:read, identity:audit, identity:provision, identity:revoke, identity:reconcile, identity:mapping. An organization credential works for one organization. An MSP credential names the customer in X-Inaya-Organization and works only for customers that accepted an MSP link. A credential cannot create credentials, providers or MSP links, and cannot restore a revoked person.
Reference workflow: leaver
- Trigger: your HR system or PSA offboarding ticket.
- Disable the AD/Entra account (your side).
- HTTP
POST /api/integrations/identity/users/{email}/revokewith{"reason":"Offboarding ticket 1234"}, headerAuthorization: Bearer <credential>,Idempotency-Key: offboard-1234. - Read
revocation.state.REVOCATION_COMPLETEends the workflow;REVOCATION_PARTIALmeans the person is already frozen but a step needs a retry (Inaya retries automatically; you can callPOST /revocations/retry). - Optionally listen for the
access.revokedoutbound event and attach itsrevocationIdto the ticket.
Reference workflow: joiner
- Trigger: onboarding ticket.
- Create the account (your side).
POST /users/provisionwith{ "providerId": "...", "event": { "type": "user.created", "subject": { "externalId": "<objectGUID>", "email": "...", "department": "Finance", "groups": ["Inaya-Finance"] } } }. Add"dryRun": truefirst to preview.- Group and attribute mappings decide the access; the workflow does not send roles.
Machine-readable versions of these two workflows live in the repository under docs/identity-integration/reference-workflows/.
Signing a request in a script
import { IdentityIntegration } from "@inaya-network/custody-sdk";
await IdentityIntegration.sendEvent({ baseUrl, providerId, secret, event }); // signed webhook
await IdentityIntegration.disableUser({ baseUrl, credential, organizationId, user: "a@corp.example", reason: "Offboarding 1234" });Before you claim it works
Run the workflow against a non-production Inaya organization with a real Rewst workspace, then record the result here. Until then, describe it as: works with any automation platform through our API; Rewst verification pending.
Related documentation
- Identity Integration (Active Directory, Entra, Rewst, SCIM)Let your directory, HR system, PSA or MSP automation drive who has access to Inaya. Joiners, movers and leavers change access automatically, a leaver is cut off at once, and Inaya stays the authority, verifying and recording every change.
- Identity Integration API and SDKThe organization-scoped identity API under /api/integrations/identity, the Rewst-style actions it exposes, authentication, capabilities, idempotency, and the SDK client.
- Identity Integration Security and WebhooksThe webhook contract (signature, timestamp, replay, size, tenant binding), credential lifecycle, privilege rules, and what is tested.
- MSP Multi-TenancyHow a managed service provider manages customer organizations through Inaya identity automation without ever crossing tenant boundaries, with delegated technician roles.
- RMM, PSA and HR WebhooksGeneric adapters that normalize RMM, PSA (ITSM) and HR events into Inaya joiner, mover, leaver and status-change events.