import "github.com/mattermost/platform/model" func getUser(userID string) (*model.User, error) { return model.GetUser(userID) } func updateUserEmail(userID, newEmail string) error { user, err := model.GetUser(userID) if err != nil { return err } user.Email = newEmail return user.Update() }The first example shows how to retrieve a user by their ID using the `GetUser` function. The second example shows how to update a user's email address by retrieving their current information, updating the email field, and then calling the `Update` function to save the changes.