Assign a role to all users

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

Parents
  • 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. Wink Smiling imp

Reply
  • 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. Wink Smiling imp

Children