I am migrating a website to Kirby and I face a problem with User management. I have approximately 200 users who can login to my website and they have permission to view few hidden pages. In order to do the same in Kirby, should I manually create 200 users from the Panel ? Or is there any other efficient way?
You can create users. programmatically, for example, from a csv file or directly. from a database.
If you have an array of your users info, you can use site()->users()->create($data);
More info: https://github.com/getkirby/kirby/blob/e3bc4e4277859249cff1a67c333a5544766cad31/core/user.php#L359
1 Like