Liking cljdoc? Tell your friends :D

metabase.models.user


add-group-idsclj

(add-group-ids users)

Efficiently add PermissionsGroup group_ids to a collection of users.

Efficiently add PermissionsGroup `group_ids` to a collection of `users`.
sourceraw docstring

admin-or-self-visible-columnsclj

Sequence of columns that we can/should return for admins fetching a list of all Users, or for the current user fetching themselves. Needed to power the admin page.

Sequence of columns that we can/should return for admins fetching a list of all Users, or for the current user
fetching themselves. Needed to power the admin page.
sourceraw docstring

create-and-invite-user!clj

(create-and-invite-user! new-user invitor)

Inputs: [new-user :- NewUser invitor :- Invitor]

Convenience function for inviting a new User and sending out the welcome email.

Inputs: [new-user :- NewUser invitor :- Invitor]

Convenience function for inviting a new `User` and sending out the welcome email.
sourceraw docstring

create-new-google-auth-user!clj

(create-new-google-auth-user! new-user)

Inputs: [new-user :- NewUser]

Convenience for creating a new user via Google Auth. This account is considered active immediately; thus all active admins will receive an email right away.

Inputs: [new-user :- NewUser]

Convenience for creating a new user via Google Auth. This account is considered active immediately; thus all active
admins will receive an email right away.
sourceraw docstring

create-new-ldap-auth-user!clj

(create-new-ldap-auth-user! new-user)

Inputs: [new-user :- NewUser]

Convenience for creating a new user via LDAP. This account is considered active immediately; thus all active admins will receive an email right away.

Inputs: [new-user :- NewUser]

Convenience for creating a new user via LDAP. This account is considered active immediately; thus all active admins
will receive an email right away.
sourceraw docstring

form-password-reset-urlclj

(form-password-reset-url reset-token)

Generate a properly formed password reset url given a password reset token.

Generate a properly formed password reset url given a password reset token.
sourceraw docstring

group-idsclj

(group-ids user-or-id)

Fetch set of IDs of PermissionsGroup a User belongs to.

Fetch set of IDs of PermissionsGroup a User belongs to.
sourceraw docstring

LoginAttributesclj

Login attributes, currently not collected for LDAP or Google Auth. Will ultimately be stored as JSON

Login attributes, currently not collected for LDAP or Google Auth. Will ultimately be stored as JSON
sourceraw docstring

NewUserclj

Required/optionals parameters needed to create a new user (for any backend)

Required/optionals parameters needed to create a new user (for any backend)
sourceraw docstring

non-admin-or-self-visible-columnsclj

Sequence of columns that we will allow non-admin Users to see when fetching a list of Users. Why can non-admins see other Users at all? I honestly would prefer they couldn't, but we need to give them a list of emails to power Pulses.

Sequence of columns that we will allow non-admin Users to see when fetching a list of Users. Why can non-admins see
other Users at all? I honestly would prefer they couldn't, but we need to give them a list of emails to power
Pulses.
sourceraw docstring

permissions-setclj

(permissions-set user-or-id)

Return a set of all permissions object paths that USER-OR-ID has been granted access to. (2 DB Calls)

Return a set of all permissions object paths that USER-OR-ID has been granted access to. (2 DB Calls)
sourceraw docstring

set-password!clj

(set-password! user-id password)

Updates the stored password for a specified User by hashing the password with a random salt.

Updates the stored password for a specified `User` by hashing the password with a random salt.
sourceraw docstring

set-password-reset-token!clj

(set-password-reset-token! user-id)

Updates a given User and generates a password reset token for them to use. Returns the URL for password reset.

Updates a given `User` and generates a password reset token for them to use. Returns the URL for password reset.
sourceraw docstring

set-permissions-groups!clj

(set-permissions-groups! user-or-id new-groups-or-ids)

Set the user's group memberships to equal the supplied group IDs. Returns true if updates were made, nil otherwise.

Set the user's group memberships to equal the supplied group IDs. Returns `true` if updates were made, `nil`
otherwise.
sourceraw docstring

Userclj

(User)
(User id)
(User & kvs)

Entity for 'core_user' table; instance of UserInstance.

Entity for 'core_user' table; instance of UserInstance.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close