Is there a way to change a user role after 30 days

I am currently working on my subscription based app. I have used a PayPal plugin that doesn’t come with pre-built subscriptions. When a user has “subscribed” their role changes according to the package they have chosen. Now I want to put in a workflow that after their role has been changed that it’ll revert back to user role standard after 30 days. Is there anyway to do this?

schedule a backend api workflow once payment is made

it should trigger in current date +30 days

1 Like

I have no idea how to do this.

have you been able to implement it?

I think so. I’ll have to wait 30 days and see if it works xD. I set it to 30 sec to test it but it just immediately reverted me back to user role standard. So I believe it should work.

1 Like

Also it might be helpful to check that the workflow is not paused in the server logs…this is a good place to start troubleshooting if you have any issues.