Once a user is entered into the system, patUser allows you to add new data to the user record, or make changes to the existing data, with its modifyUser() method. This method accepts two primary arguments: an array containing the data to be inserted, and an array containing the user ID of the record to edited and related options.
Consider the following example, which illustrates the process of editing a user record and entering new information into it:
Note that in the example above, all changes will be made to the record
with user ID 15. If no user ID is provided, the currently logged-in user's ID is used instead.
You can also modify group data with the corresponding modifyGroup() method. I'll leave that to you to experiment with.