LIÊN HỆ ĐỘI NGŨ TƯ VẤN
Liên hệ với đội ngũ chuyên gia GCS để được hỗ trợ một cách tốt nhất
14 phút đọc
Before people on your team can sign in and use your organization’s Google services (for example, Google Workspace or Cloud Identity), they need a user account. If you have many new users, you can add their accounts all at once from a CSV file.
You can also update multiple existing accounts from a spreadsheet, or CSV file.
Make sure this is the right option
Understand account licensing and billing
Check for unmanaged and visitor accounts
There’s a known License Management issue that can occur when you are updating multiple users with a CSV file. For details, see Google Workspace Known Issues.
If you use a CSV file to create new accounts, the users do not receive a new user welcome email with their credentials. You have to send your new users their account credentials separately.
Tip: If you forget the new user’s password, reset the password and then email the new one to the user.
Step 1: Download the template file
Step 2: Enter users’ information
Step 3: Save the file
After it’s complete, save it as a CSV file (.csv).
Notes:
Step 4: Upload the file
It can take up to 24 hours for new users to have access to Google services and appear in the Directory. Learn more about the Directory.
If you want to… | Follow these guidelines… |
---|---|
Enter multiple values in a column | For multiple values in a single column, such as phone numbers and email addresses, separate them with a comma (but no spaces)—for example: username1@domain.com,username2@domain.com |
Enter values that include commas, with line breaks, or double quotes | Enclose the values in double quotation marks—for example, “123 Anystreet, Anytown” |
Upload non-ASCII or double byte usernames | Be sure to save the CSV file in UTF-8 so the usernames are readable. |
Add more columns | You can enter information only in the columns available in the downloaded file. You can’t add new columns, such as those for custom attributes. |
Upload existing users | If you enter the email address or email alias of an existing user in the Email Address column, the existing user’s account will be updated with any changes you make to their information in the other columns. |
Column | Description/Format |
---|---|
First Name / Last Name | A first name and last name can each have up to 60 characters. |
Email Address | The user’s sign-in name. Enter the full email address: username@example.com |
Password |
Passwords are case sensitive. By default, a password must have at least 8 characters. You can change password requirements for your organization. If you’re updating existing users and you don’t want to change their passwords, enter **** (4 asterisks). If a Password Hash Function is also specified, the password column must contain the hashed password. For example, if you use SHA-1 and the hash of password abc is xyz, enter xyz in the Password column. |
Org Unit Path |
For placing users in an organizational unit. If you haven’t yet set up an organizational hierarchy: Enter / (forward slash) only to place all users in the top-level parent organizational unit. You can move users to other organizational units you create later. If you’ve already set up an organizational hierarchy: Use the format in the following examples to place each user in an organizational unit—in either your top-level parent organizational unit or a child organizational unit below it. Examples: / (for the top-level parent–don’t enter your domain name) /Sales (for a child below the top-level parent) /Students/First Grade |
Column | Format |
---|---|
Password Hash Function [Upload Only] |
Specify one of the following supported hash functions: MD5, SHA-1, or crypt. The Password column must contain the hashed password. For example, if you use SHA-1 and the hash of password abc is xyz, enter xyz in the Password column. Tip: You can find utilities on the web to generate hashed passwords using the supported hash functions. |
Recovery Email and Recovery Phone |
For providing recovery information used for login challenges.
|
Work/Home Address | If you include commas or line breaks in an address, enclose the address in double quotation marks—for example, “123 Anystreet, Anytown” |
New Primary Email [Upload Only] | For editing existing user accounts only. Specify a new primary email address (username). |
Building ID, Floor Name, and Floor Section | To enter this information, follow these guidelines. |
Change Password at Next Sign-In | To require a user to change their password the next time they sign in to their account, enter TRUE. Otherwise, leave the column empty or enter FALSE. |
New Status [Upload Only] | For editing >strong>existing user accounts only. To archive or suspend a user, enter Archived or Suspended. To unarchive or restore a suspended user, enter Active. |
New Licenses [Upload Only] |
For editing existing user accounts only. To assign a different license to a user, enter the SKU ID for the license. Separate multiple license IDs with commas—for example: 1010020020,1010330002 A CSV file can include up to 200 users that are being assigned a new license. |
Error | Cause/Solution |
---|---|
File is empty | Your file doesn’t contain any information. |
Incorrect file format or unknown column name | The columns in your file should be titled First Name [Required], Last Name [Required], Email Address [Required], Password [Required], and Org Unit Path [Required]. |
File must have the “column name” column | A required column is missing. |
Empty “column name” in row nn |
A column that requires information is empty in a specific row. For example, you’ll see the error Empty “Org Unit Path [Required]” in row 2 if you didn’t enter the organizational unit in which you want to place a user’s account. Go to Org Unit Path above. |
File is too large to upload | The CSV file is over 35 MB or there are more than 150,000 records in the file. Open the file and split the table into separate files. Save each one as a CSV file. Make sure you include the column headings row in all CSV files. |
Incorrect number of columns in the row nn | A column is missing for a specific row. |
“Email Address [Required]” contains reserved username in row nn | Certain accounts are reserved and can’t be created—for example, abuse and postmaster. |
Action_Failed: User_LIMIT_EXCEEDED |
You reached the limit to add licenses to your Google Workspace edition, so some users in your CSV file did not get a license. Note: Starting from the top row of your CSV file, Google Accounts are added until no more licenses are available. |
Error | Cause/Solution |
---|---|
ACTION FAILED: Validation | An entry contains unsupported characters. For help, go to Username and group name guidelines. |
ACTION FAILED: UNKNOWN ERROR | Most likely, a temporary error occurred. Try uploading the CSV file again, or uploading items in smaller batches. This error can also occur if you’ve entered an incorrect domain name in a user’s email address (after the @ sign) in the Email Address column. |
ACTION FAILED: INSUFFICIENT LICENSES | Your organization’s Google Account doesn’t have enough licenses for all the new users in your CSV file. Accounts are added starting from the top row until there are no more licenses available. You can purchase more licenses and then upload the remaining users in the CSV file. |
ACTION FAILED: OU INVALID |
This error usually means one of the following formatting errors:
|
ACTION FAILED: USER NAME INVALID | The email address (username) in the Email Address column isn’t formatted correctly. Make sure you enter the user’s full email address. Also check for spaces in the address. |
ACTION FAILED: PERMISSION DENIED | The user’s email address in the Email Address column includes a domain name (after the @ symbol) that’s not associated with your organization’s Google Account. Make sure you entered the domain name in the email address correctly. |
ACTION FAILED: PASSWORD INVALID | User password incorrect. Can occur if you’re trying to update an account that was deleted. Verify you’re using the correct password for each user. |
ACTION FAILED: PASSWORD HASH FUNCTION INVALID | The Password Hash Function column contains an incorrect hash function name. |
ACTION FAILED: UPDATE USER LICENSES FAILED | One or more SKU IDs in the New License column couldn’t be updated for the user. Ensure that the SKU IDs are correct and the column is formatted correctly for multiple SKU IDs. |
ACTION FAILED: ONLY VFE ALLOWED | The user currently has a Vault Former Employee (VFE) license, but the New License column contains a SKU ID for a license other than the VFE. You can’t add another license type to a user with a VFE license. |
ACTION FAILED: UNASSIGNABLE LICENSE | The New License column contains a SKU ID for a product for which you don’t have a subscription. |
ACTION FAILED: MULTIPLE LICENSES IN SAME PRODUCT |
The upload failed for one of the following reasons:
|
ACTION FAILED: REPEATED SKU ASSIGNMENTS FOR USER | The New License column contains the same SKU ID 2 or more times. |
ACTION FAILED: SKU SWITCH RESTRICTED | The New License column contains a SKU ID for a product that your current subscription doesn’t let you upgrade or downgrade to. |
ACTION FAILED: UPDATING DELETED USER | The New License column contains a SKU ID, but the user account is deleted. |
If you add a user to an organizational unit that has automatic licensing turned on, the automatic licensing settings take precedence over the license you assign to the user in the CSV file. An error won’t be shown in the log file.
You can save time when you need to edit multiple accounts by downloading a list of accounts from the Admin console.
If you have an LDAP server, such as Microsoft Active Directory, you can use Google Cloud Directory Sync to synchronize your Google users, groups, and shared contacts to match the information in your LDAP server.
Want someone to do this for you? Get professional help with setup.