Share app with groups

Changed on

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

Shares the app with one or more workspace groups, giving every member of each group access to the app.

All the groups get the same role. A member's role in the app is the highest of the role you gave them directly and the roles of all the groups they're in that the app is shared with. Members usually get access right away, and always by their next sign-in. Members your identity provider synced who don't have a Base44 account yet get access once they have one. Each member who gets access is also sent an invitation email, at most once per app.

Each group succeeds or fails on its own, so read results rather than treating a successful response as every group shared. Sending a group the app is already shared with fails that group with already_shared and changes nothing, so retrying is safe. Change a share's role afterwards with Update group share.

You need editor access to the app, and an editor or admin role in the app's workspace. Your workspace's plan must include workspace groups.

This is limited to 30 requests per minute. A signed-in session has its own limit, and every personal access token for the workspace shares one. Some workspaces have a different limit.

<Note>This endpoint accepts a personal API key belonging to a user with editor access to the app. A read-only key is refused, and workspace API keys are not accepted.</Note>

post/api/apps/{app_id}/group-shares

Request

  • Base URL: https://app.base44.com
  • URL: https://app.base44.com/api/apps/{app_id}/group-shares
  • Auth: HTTP bearer

Path parameters

app_idstring required

ID of the app.

Request body

group_idsstring[] required

IDs of the workspace groups to share the app with, 1 to 50. A repeated ID counts once.

rolestring nullable

App role every member of these groups gets, one of the roles defined on the app's User entity. Leave it out, or send null, to assign no role, so members get the default user role.

Example request

{
  "group_ids": [
    "68c9a0f1d2e4b5001f3a7c90"
  ],
  "role": "user"
}

Response

One result per group.

Example response

{
  "results": [
    {
      "group_id": "68c9a0f1d2e4b5001f3a7c90",
      "success": true
    }
  ]
}

Changes