Version v0.43 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
/api/permissions endpoints.
DELETE /api/permissions/group/:group-idDelete a specific PermissionsGroup.
group-idDELETE /api/permissions/membership/:idRemove a User from a PermissionsGroup (delete their membership).
idGET /api/permissions/graphFetch a graph of all Permissions.
You must be a superuser to do this.
GET /api/permissions/groupFetch all PermissionsGroups, including a count of the number of :members in that group.
This API requires superuser or group manager of more than one group.
Group manager is only available if advanced-permissions is enabled and returns only groups that user
is manager of.
GET /api/permissions/group/:idFetch the details for a certain permissions group.
idGET /api/permissions/membershipFetch a map describing the group memberships of various users. This map’s format is:
{<user-id> [{:membership_id <id>
:group_id <id>
:is_group_manager boolean}]}.
POST /api/permissions/groupCreate a new PermissionsGroup.
You must be a superuser to do this.
name value must be a non-blank string.POST /api/permissions/membershipAdd a User to a PermissionsGroup. Returns updated list of members belonging to the group.
group_id value must be an integer greater than zero.
user_id value must be an integer greater than zero.
is_group_manager value may be nil, or if non-nil, value must be a boolean.
PUT /api/permissions/graphDo a batch update of Permissions by passing in a modified graph. This should return the same graph, in the same
format, that you got from GET /api/permissions/graph, with any changes made in the wherever necessary. This
modified graph must correspond to the PermissionsGraph schema. If successful, this endpoint returns the updated
permissions graph; use this as a base for any further modifications.
Revisions to the permissions graph are tracked. If you fetch the permissions graph and some other third-party modifies it before you can submit you revisions, the endpoint will instead make no changes and return a 409 (Conflict) response. In this case, you should fetch the updated graph and make desired changes to that.
You must be a superuser to do this.
body value must be a map.PUT /api/permissions/group/:group-idUpdate the name of a PermissionsGroup.
group-id
name value must be a non-blank string.
PUT /api/permissions/membership/:idUpdate a Permission Group membership. Returns the updated record.
id
is_group_manager value must be a boolean.