Hi,
No defacto way is included, this would some small custom code. It can be
done via the REST API (https://gitlab.com/mayan-edms/python_api_client) or
by calling the user and group models directly from the command line.
Something like:
./manage.py shell
from django.contrib.auth.models import Group
from django.contrib.auth import get_user_model
with open('groups.txt') as file_object:
for line in file_object:
Group.objects.create(name=line)
UserModel = get_user_model()
with open('users.txt') as file_object:
for line in file_object:
UserModel.objects.create(username=line)
On Thursday, March 23, 2017 at 3:42:40 AM UTC-4, AQ Amra wrote:
>
> Hi All,
>
> We are setting up Mayan with 300+ users and 100+ groups, is there a way
> bulk import this into the database?
>
> Thanks in advance.
>
> Regards
>
--
---
You received this message because you are subscribed to the Google Groups
"Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.