Remove member
DELETE
https://api.flownally.com/v1/users/{userId}Removes a member from the workspace and signs them out of the app. The member no longer
appears in GET /users, but past activity, such as messages they sent, still shows who
did it.
Authorization
Required scopes
- user:disable
Allowed roles
- owner
- admin
Remove a member from the workspace.
Parameters
- Name
userId- Type
- path · string
- required
User ID.
Responses
- 204Member removed
- 400Invalid request. Code:
auth_member_self_removal_forbidden: you can't remove yourself.
- 403Your role can't remove this member. Codes:
auth_authz_member_remove_denied: your role can't remove members.auth_member_removal_forbidden: you can't remove an Owner.
- 404The user isn't a member of this workspace. Code:
auth_user_not_found
- 409The workspace must keep at least one Owner. Code:
auth_user_last_owner_required: removing this member would leave no active Owner.
- defaultErrorapplication/json
Related schemas
Generated from the API spec.