user groups

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
dinindu98
Posts: 6
Joined: 24 Dec 2020, 17:54

user groups

Post by dinindu98 » 01 Jan 2021, 11:05

How do I use user groups [admin, editor] common way for all the sites that I created?

OS windows
Laravel Version 7
PHP 7.3

User avatar
aimeos
Administrator
Posts: 8636
Joined: 01 Jan 1970, 00:00

Re: user groups

Post by aimeos » 02 Jan 2021, 15:37

What do you mean? Assign the admin or editor group to all newly created sites or something else?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

dinindu98
Posts: 6
Joined: 24 Dec 2020, 17:54

Re: user groups

Post by dinindu98 » 04 Jan 2021, 03:02

Assign the admin and editor group to all newly created sites. Is it possible to assign those groups while creating a new site? because I want admin and editor groups for every site that I'm going to create newly.

User avatar
aimeos
Administrator
Posts: 8636
Joined: 01 Jan 1970, 00:00

Re: user groups

Post by aimeos » 05 Jan 2021, 08:48

User groups can be assigned to customer accounts, not to sites and you can assign either "admin" or "editor" but should not assign both. You can assign the group when you create a new account associated to the site in the backend. There's a video for that (it's for a marketplace but it's the same for multi-tentant SaaS setups):
https://www.youtube.com/watch?v=oKAoomQFYYc

You can also create new accounts from the command line:

Code: Select all

php artisan aimeos:account --admin me@localhost mysite
# or for editors:
php artisan aimeos:account --editor me@localhost mysite
The latest Aimeos distribution also supports creating new sites and accounts via self-registration of merchants:
https://github.com/aimeos#multi-vendor
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply