Role
Change a member's role, and optionally their explicit permissions. Leave permissions out to keep whatever they have, send an array to pin an exact…
Authentication
Authorization<token>A SaaSFlow API key (format sf_…) or an OAuth bearer token. Paste only the key — the proxy adds the Bearer prefix. Create an API key in Settings → Company settings → API keys — see API keys.
companyId*stringuuiduserId*stringuuidapplication/json- body
role*stringThe role assigned to a user within the system. Owner = full access incl. company settings, billing, and user management; editor = read/write on data; viewer = read-only. The role is also used as the default permission preset and as a non-permission marker (e.g. notifications are sent to all owners). For granular API access control, see PermissionSchema.
"owner""editor""viewer"permissions?array<>|nullUser role updated
application/json- response
success*booleancurl -X PUT 'https://api.saasflow.com/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/role' \ -H 'Content-Type: application/json' \ -d '{ "role": "owner"}'{ "success": true}List users
List the people with an actual membership in a company, with their role and when they were last seen. id and userId both carry the SaaSFlow user id, which…
Delete user
Remove someone from a company. Their user account survives, they just lose access to this company, and the data they created stays.