Hello all,
Is there a way to easily assign a new role to ALL users?
We have a situation in which we have 1300 users and we have to add a specific role to ALL.
Thanks a lot
Hello all,
Is there a way to easily assign a new role to ALL users?
We have a situation in which we have 1300 users and we have to add a specific role to ALL.
Thanks a lot
Long time ago in version 6.0 I wrote two logic_hooks on the event after_save in modules Users and ACLRoles which did the following:
1. if a new role was created which starts with "#" all non admin users were linked to this role.
2. if a new non admin user was created, all roles starting with "#" were linked to this user.
By these two hooks we made sure that no new users were created without any role restriction.
One of the #-roles war READONLY which gave only read access to some basic modules.
When a user found out that he had only some basic read access he was ready for the initial CRM training.
Long time ago in version 6.0 I wrote two logic_hooks on the event after_save in modules Users and ACLRoles which did the following:
1. if a new role was created which starts with "#" all non admin users were linked to this role.
2. if a new non admin user was created, all roles starting with "#" were linked to this user.
By these two hooks we made sure that no new users were created without any role restriction.
One of the #-roles war READONLY which gave only read access to some basic modules.
When a user found out that he had only some basic read access he was ready for the initial CRM training.
Harald Kuske thanks for the solution, probably for this scenario i'll continue with the other idea but yours is very smart for other scenarios. For sure i'll use it!