Remove app user

Changed on

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Removes a user from the app.

The user loses access straight away, including any editor access they had to the app. Their invitation or access request is deleted too, so they aren't added back the next time they sign in, unless they belong to a group shared with the app, which lets them back in through the group. To give them access again, invite them with Invite app users. You can't remove the app's owner.

A removed user is kept for 30 days, so an app editor can restore them from the app's dashboard, and is then deleted permanently. A user who removes themselves is deleted permanently right away.

Removing a user triggers the app's webhooks for the User entity.

<Note>This endpoint accepts a personal API key belonging to a user with editor access to the app, or a workspace API key, which acts as the workspace owner. A read-only key is refused.</Note>

Runs as your user in this app, so the app's access rules decide which records you can read or change.

delete/api/apps/{app_id}/entities/User/{user_id}

Request

  • Base URL
    https://app.base44.com
  • Auth
    • HTTP bearer
    • or API key in header api_key
    • or HTTP bearer

Path parameters

user_idstring required

ID of the user, as id in the response of List app users.

app_idstring required

ID of the app the user belongs to.

Response

The user was removed.

successboolean required

Always true. A delete that doesn't happen returns an error instead.

Example response

{
  "success": true
}

Changes

    • info

      added the non-success response with the status

    • info

      the endpoint scheme security WorkspaceApiKeyAuth was added to the API

    • info

      the endpoint scheme security WorkspaceApiKeyBearerAuth was added to the API