Inviting Team Members and Managing Roles
Sharing individual login credentials poses security risks and prevents audit log attribution. This guide demonstrates how to invite colleagues to your Shaf workspace, assign role-based access control (RBAC) permissions across four privilege tiers, and manage the complete invitation lifecycle.
Prerequisites
- Workspace permissions:
OwnerorAdminrole in your Shaf organization. - Work email addresses for prospective team members.
- Available member seats on your current subscription plan.
Implementation Recipe
Review the Role Permissions Matrix
Select the appropriate permission tier before dispatching an invitation:
Capability Owner Admin Member Viewer Create, edit, and delete short links ✅ ✅ ✅ ❌ Inspect analytics dashboards and export CSVs ✅ ✅ ✅ ✅ Configure custom domains and TLS settings ✅ ✅ ❌ ❌ Manage developer API keys and webhooks ✅ ✅ ❌ ❌ Invite and remove workspace teammates ✅ ✅ ❌ ❌ Modify Stripe billing, plan tiers, and seats ✅ ❌ ❌ ❌ Delete the organization or transfer ownership ✅ ❌ ❌ ❌ Dispatch an Invitation
Send an invitation via the dashboard or submit an API request:
curl -X POST "https://shaf.app/api/v1/organizations/org_01j8k9x2m4/invites" \ -H "Authorization: Bearer $SHAF_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "email": "sarah@acme.com", "role": "member" }'Expected response (
201 Created):{ "inviteId": "inv_01j8k9x2", "email": "sarah@acme.com", "role": "member", "status": "pending", "expiresAt": "2026-11-28T17:00:00Z" }- Navigate to Settings → Members.
- Click + Invite Member.
- Enter the collaborator’s corporate email address.
- Select their role (
Admin,Member, orViewer). - Click Send Invitation.
Update Member Roles or Revoke Access
To change an existing member’s role or remove access:
# Update role to admin curl -X PATCH "https://shaf.app/api/v1/organizations/org_01j8k9x2m4/members/usr_sarah" \ -H "Authorization: Bearer $SHAF_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "role": "admin" }' # Remove user from workspace curl -X DELETE "https://shaf.app/api/v1/organizations/org_01j8k9x2m4/members/usr_sarah" \ -H "Authorization: Bearer $SHAF_API_TOKEN"
Verification
List all active and pending organization members via the API:
curl -X GET "https://shaf.app/api/v1/organizations/org_01j8k9x2m4/members" \
-H "Authorization: Bearer $SHAF_API_TOKEN"Expected response (200 OK):
{
"total": 2,
"members": [
{
"id": "usr_owner_01",
"email": "alex@acme.com",
"role": "owner",
"status": "active"
},
{
"id": "usr_sarah",
"email": "sarah@acme.com",
"role": "member",
"status": "active"
}
]
}Common Gotchas
| Issue / Error | Root Cause | Solution |
|---|---|---|
402 Payment Required: Seat limit |
Plan has utilized all allocated team member seats. | Navigate to Settings → Billing and add additional seats before inviting. |
| Invitation expired (7-day limit) | Recipient did not accept the invitation token within 7 days. | In the Members table, click Resend Invite to generate a fresh token. |
| Cannot transfer Owner role | Only the current Owner account can initiate organization ownership migration. | Log in with the primary Owner credentials and select Transfer Ownership in organization settings. |
| Removed member still active in SSO | SCIM directory sync is enabled and the user remains in the IdP corporate group. | Remove the employee from the mapped group in Okta or Microsoft Entra ID. |