Importing Information - YourMembers/yourmembers GitHub Wiki

Your Members allows you to import your users using CSV file. Initially the only CSV files you could use were files YM had exported, but in recent versions of Your Members this has been expanded.

What data can be imported

The following data can be imported into your system via the CSV:
  • user_email (this is required and must be unique
  • user_login (username)
  • password (This is not recommended! and will only work if you have plain text passwords. Also accepts legacy ym_password)
  • pack_id (This is the package ID you wish to put the user on, will also accept package_id)
  • expire_date (as of 12.0.4 this works with both package building and putting on via packages)
  • account_type (package account type)
  • duration (only if package account type is set, should be numeric number)
  • duration_type (only if duration is set should be one of the following d/m/y)
  • smflag (send welcome email if set to true)

In addition you can also send additional custom fields if they have been set up prior to import.

Simple import

The simplest import is simply name and pack_id you csv would look like this: user_email,pack_id [email protected],2 In this scenario a user would be created with user_login and user_email of [email protected] and would be placed on package 2

Create your csv in a text editor such as notepad, if you using excel, make sure to open the file in a text editor and remove any spurious commas as needed.

To import navigate to Your Members -> Members scroll down to user import and use the file upload to upload your CSV.

Assuming everything has gone to plan, you should have a user called [email protected]. From here you can set up a welcome e-mail system, change expiry dates, and add custom fields.

⚠️ **GitHub.com Fallback** ⚠️