Hi there,

I think this is a feature request, but it could be a support request if I'm doing something wrong. . .

Anyway, while Workflow.ng has an action to change an "author" or "acting user" to a particular role, I can't find a way to upgrade all users with one particular role to another role.

Here's my specific need: I've had to create a complex series of roles to ensure subscribers gain access to content in a strict sequence: issue #1, issue #2, etc. The subscribers purchase a "subscriber 1" role via Ubercart, which gives them access to issue #1 (with each node restricted using the Content Access module). However, then I need to upgrade subscribers to access new content each week: For example, "subscriber 1" users are upgraded to a "subscriber 2" role to access issue #2 (while maintaining to their "subscriber 1" role to access issue #1). And so on and so on.

The Administer Users by Role module makes it pretty quick to give a new role to all users with one particular role. However, it would be great to have this automated with a Workflow.ng action. Then it would be a simple matter to use the "Send mail to all users of a role" action to notify users that they have access to the new content.

And while I'm making requests, it would be great to have a Workflow.ng event based purely on time. I note that Workflow.ng has a "Content Links Schedule" event but, correct me if I'm wrong, I don't think that works the way I'm look for: Basically, I just want to schedule an event within Rule Configations in exactly the same way that Content Links allows you to schedule publication of a node. This isn't a big deal, because it's easy enough to schedule publication of a phantom node to trigger an event, but it would be ideal to be able to create the scheduled events within Rule Configations itself.

Anyway, thanks for a great module.

Comments

MGParisi’s picture

I need something exactly like this. I want it timed based and post based. So give 1 week plus 2 posts = Role change. I think Workflow-NG is the way to go with this. I have tried actions but so far no luck. It seems to trigger actions, but its not flexible on what it wants.

fago’s picture

Title: Role upgrade action and scheduled event » add worklfow-ng role upgrade action
Project: Workflow-ng » Administer Users by Role
Version: 5.x-2.1 » 5.x-0.9
Component: Miscellaneous » Code

Best, this is implemented as workflow-ng action for the administerusersbyrole module. Then it's possible to use the module's feature by workflow-ng. So I change this issue to this module.

@scheduling:
Something like
>So give 1 week plus 2 posts = Role change.
can be done with the improved, generic scheduling system of rules. -> try it.. :) However I don't plan to improve this for worklfow-ng any more.

adamps’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Sorry I'm not entirely sure I understand this, but it's clearly very old! It seems like a feature request to work with a specific other module. Of course there are 1000s of other modules, so it could be an endless source of work. As a starting point it would need someone who uses both modules can offer a patch. But even then, I'm not sure it could be maintained as part of this project. Maybe best a separate module entirely that integrates the two?