-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ability to import users #3267
Conversation
Thank you! |
Is there the potential to also have the ability to import user files from a zip that can contains the CSV file for each user and holds a folder format within each created user profile user folder if exists or something of this nature if you can follow me here? I seen this injects the file service and after reviewing while in this migration of users I thought I would ask. Also I see this says ability to import users, but looking at logic it seems it would potentially be a CSV file per user? What I am asking is does this import many users from one file or one user imported per CSV file uploaded? I will test this feature out soon let you know how it goes once I fully understand the template format to be used. Thanks again! |
@thabaum a CSV file is intended to contain many users - the purpose of this feature is to bulk load users. A template is provided so the user knows the expected import file format (Oqtane.Server/wwwroot/users.csv) with a button in the UI to download the template Email - required there is no need for a ZIP file |
OK, Thanks for additional clarity. What I was hoping to ask and sorry for any confusion: As an enhancement could we potentially down the road add a feature to also upload user files, and this way we can programmatically generate user data in the CSV and per line also have a relating folder named by line associated with the user ie 1,2,3,4,5.....110000... to upload the user files as well such as the ProfileImageId. Potentially two ways to upload new users as it may be overkill for a lot of sites. Some site migrations may have user files and it would be nice to be able to organize them into the users' Now that I have tested this new enhancement I can give some feedback here as well. On first attempt I wanted to test some "incorrect" CSV template data and it said the user was imported, I did not see anything in the database added. Here was the data I presented to it without studying the code further just guessing what could be potentially the proper data to present. Just this single line thinking maybe it had a default set of fields as shown to import.
This CSV uploaded and message stated importing the user successfully, but no user data imported into the User database table. Then I did 5 users following using this:
All users where generated and created the roles not currently present for each user. I then added the fields at the top of the Jim file and uploaded/imported it successfully into the database using:
Oqtane should not have told me it imported a user when it did not (when I didnt add the fields to the first line). A check to see if the user exists after the user has been imported to verify and report any inconsistencies in the template such as fields missing if expected? Maybe a "generate report" option to show if any users are duplicates so they didnt get imported due to user already existing.
Trying to add to multiple roles using a space but it goes by names so it just adds a long user name. I was able to accomplish this by adding a line for each role while also noticing the last entry will update the profile information with the last updated info entry while testing behavior(which would be expected). which would be
So if you have some users with more than one role a new line created for each role using this template. And you can add "Roles" as an additional field for more than one,but sometimes you may have 5 or more roles and others only have 1 or 2 if any. Not sure if this is suggested way but this approach does add the user to additional roles and overwrites field settings for that user. Which maybe you do not want in the event you are importing from a couple other systems that may have duplicate usernames but are different users. Maybe a test can be ran to show the end results along with any conflicts and options to handle them to then a confirmation to apply them. For 2 roles adding I was trying This is what I was able to come up with for different results. So for a recap these are some concerns:
Have any questions for clarity please let me know. Great enhancement this is huge, thank you! |
@thabaum thank you for testing a variety of different scenarios and providing feedback. Please note that the goal is to provide a very simple import capability without extensive features. I view this as an opportunity for a developer to create a more powerful user import module and make it available to the community - either open source or commercial. The responsibility of the platform is to enable developers to create more advanced solutions - not to provide all of the advanced solutions itself. Some specific feedback to the items raised:
|
@thabaum #3283 addresses some of your feedback above:
|
No description provided.