Automatically manage User account

Hello,

I want to check the membership membership that has expired and change it to a regular member.

To do this, it is necessary to conditionally check and modify the field of the User data type.

The fields I use are as follows:

  • Membership: Membership members/general members
  • membership_end_date: the date your membership ends

The user’s membership level includes regular members and membership members.

When you become a membership member, record the user’s membership deadline through the field named membership_end_date.

And when the user’s membership deadline is over, he has to change his membership rating to a regular member again.

I’ve been using social login api recently, so I have a member whose session is maintained, so I can visit my website without having to log in every time.
As a result, checking membership deadlines in the login workflow was useless.

Hey @esp :wave:

What you can do is to schedule an API workflow every night (or whenever you want), to check the members that has the membership_end_dates passed and change their status to regular.

Scheduled API workflows are great for these kind of scenarios:
image

You can check them more from here: Scheduling API workflows | Bubble Docs

I hope this helps.

bdk_512x512 @Huseyin from Flusk | Discover the #1 Security and Monitoring Tool for Bubble