(add-group-ids users)
Efficiently add PermissionsGroup group_ids
to a collection of users
.
Efficiently add PermissionsGroup `group_ids` to a collection of `users`.
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.
(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.
(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.
(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.
(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.
(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.
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
Required/optionals parameters needed to create a new user (for any backend)
Required/optionals parameters needed to create a new user (for any backend)
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.
(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)
(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.
(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.
(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.
(User)
(User id)
(User & kvs)
Entity for 'core_user' table; instance of UserInstance.
Entity for 'core_user' table; instance of UserInstance.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close