create role

Events happening in the community are now at Drupal community events on www.drupal.org.
jaochoo's picture

Need an action to create and delete roles

I need an action which creates a new role with default permissions and a customized name as well as an action to delete a role to make Rules like the following:
- When a new node of content type "company" is created, create a new role with name "role_companyname"
- When a new node of content type "department" is created, populate the referenced company node and create a new role with name "role_companyname_departmentname"
- When a node of content type "department" is created, delete the role with name "role_departmentname"
- etc.

Question:

Read more
Subscribe with RSS Syndicate content