AttachUserAccounts attachs user accounts to user object.
GetSecuredUser contain associated accounts but credentials are wiped.
Handler contains the runtime information such as logging and database.
Add is the endpoint that enables an administrator to add a new user for their organization.
BulkImport imports comma-delimited list of users: firstname, lastname, email
ChangePassword accepts password change from within the app.
Delete is the endpoint to delete a user specified by userID, the caller must be an Administrator.
ForgotPassword initiates the change password procedure. Generates a reset token and sends email to the user. User has to click link in email and then provide a new password.
Get returns user specified by ID
GetOrganizationUsers is the endpoint that allows administrators to view the users in their organization.
GetSpaceUsers returns every user within a given space
MatchUsers returns users where provided text matches firstname, lastname, email
ResetPassword stores the newly chosen password for the user.
Update is the endpoint to update user information for the given userID. Note that unless they have admin privildges, a user can only update their own information. Also, only admins can update user roles in organisations.
Store provides data access to space information.
Add adds the given user record to the user table.
CountActiveUsers returns the number of active users in the system.
DeactiveUser deletes the account record for the given userID and persister.Context.OrgID.
ForgotUserPassword sets the password to ” and the reset field to token, for a user identified by email.
Get returns the user record for the given id.
GetActiveUsersForOrganization returns a slice containing of active user records for the organization identified in the Persister.
GetByDomain matches user by email and domain.
GetByEmail returns a single row match on email.
GetBySerial is used to retrieve a user via their temporary password salt value! This occurs when we you share a folder with a new user and they have to complete the onboarding process.
GetByToken returns a user record given a reset token value.
GetSpaceUsers returns a slice containing all user records for given space.
GetUsersForOrganization returns a slice containing all of the user records for the organizaiton identified in the context.
GetUsersForSpaces returns users with access to specified spaces.
MatchUsers returns users that have match to either firstname, lastname or email.
UpdateUser updates the user table using the given replacement user record.
func (s Store) UpdateUserPassword(ctx domain.RequestContext, userID, salt, password string) (err error)
UpdateUserPassword updates a user record with new password and salt values.