Version v0.44 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
User
/api/user endpoints.
DELETE /api/user/:id
Disable a User. This does not remove the User from the DB, but instead disables their account.
You must be a superuser to do this.
PARAMS:
id
GET /api/user/
Fetch a list of Users. By default returns every active user but only active users.
- If
statusisdeactivated, include deactivated users only. - If
statusisall, include all users (active and inactive). - Also supports
include_deactivated, which if true, is equivalent tostatus=all; If is false, is equivalent tostatus=active.statusandinclude_deactivatedrequires superuser permissions. include_deactivatedis a legacy alias forstatusand will be removed in a future release, users are advised to usestatusfor better support and flexibility. If both params are passed,statustakes precedence.
For users with segmented permissions, return only themselves.
Takes limit, offset for pagination.
Takes query for filtering on first name, last name, email.
Also takes group_id, which filters on group id.
PARAMS:
-
statusvalue may be nil, or if non-nil, value must be a string. -
queryvalue may be nil, or if non-nil, value must be a string. -
group_idvalue may be nil, or if non-nil, value must be an integer greater than zero. -
include_deactivatedvalue may be nil, or if non-nil, value must be a valid boolean string (‘true’ or ‘false’).
GET /api/user/:id
Fetch a User. You must be fetching yourself or be a superuser or a Group Manager.
PARAMS:
id
GET /api/user/current
Fetch the current User.
POST /api/user/
Create a new User, return a 400 if the email address is already taken.
You must be a superuser to do this.
PARAMS:
-
first_namevalue may be nil, or if non-nil, value must be a non-blank string. -
last_namevalue may be nil, or if non-nil, value must be a non-blank string. -
emailvalue must be a valid email address. -
user_group_membershipsvalue may be nil, or if non-nil, value must be an array. -
login_attributesvalue may be nil, or if non-nil, login attribute keys must be a keyword or string
POST /api/user/:id/send_invite
Resend the user invite email for a given user.
You must be a superuser to do this.
PARAMS:
id
PUT /api/user/:id
Update an existing, active User.
Self or superusers can update user info and groups.
Group Managers can only add/remove users from groups they are manager of.
PARAMS:
-
emailvalue may be nil, or if non-nil, value must be a valid email address. -
first_namevalue may be nil, or if non-nil, value must be a non-blank string. -
is_group_managervalue may be nil, or if non-nil, value must be a boolean. -
localevalue may be nil, or if non-nil, String must be a valid two-letter ISO language or language-country code e.g. en or en_US. -
user_group_membershipsvalue may be nil, or if non-nil, value must be an array. -
id -
is_superuservalue may be nil, or if non-nil, value must be a boolean. -
login_attributesvalue may be nil, or if non-nil, login attribute keys must be a keyword or string -
last_namevalue may be nil, or if non-nil, value must be a non-blank string.
PUT /api/user/:id/modal/:modal
Indicate that a user has been informed about the vast intricacies of ‘the’ Query Builder.
PARAMS:
-
id -
modal
PUT /api/user/:id/password
Update a user’s password.
PARAMS:
-
id -
passwordpassword is too common. -
old_password
PUT /api/user/:id/reactivate
Reactivate user at :id.
You must be a superuser to do this.
PARAMS:
id
Read docs for other versions of Metabase.