Skip to Content Skip to Menu

Auto action to delete inactive users

  • catalincb
  • catalincb
  • OFFLINE
  • Posts: 60
  • Thanks: 2
  • Karma: 0
9 years 6 months ago #263083 by catalincb
Auto action to delete inactive users was created by catalincb
There is any posibility to delete inactive users who didnt login for a number of days ?
using auto actions?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 6 months ago #263130 by krileon
Replied by krileon on topic Auto action to delete inactive users
CB Auto Actions does not provide an action to delete users. You'd need to call the user object ->delete() after constructing the user object within a Code action using PHP. Your action would need to have the Internal Users trigger only. You can then trigger the action for every user row using the Internal Users URL found within CB Auto Actions > Parameters. With that said I do not recommend doing this.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • catalincb
  • catalincb
  • OFFLINE
  • Posts: 60
  • Thanks: 2
  • Karma: 0
9 years 6 months ago #263151 by catalincb
Replied by catalincb on topic Auto action to delete inactive users
Ok thanks. i will look after an extension

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 6 months ago #263188 by nant
Replied by nant on topic Auto action to delete inactive users

catalincb wrote: There is any posibility to delete inactive users who didnt login for a number of days ?
using auto actions?


I have taken a somewhat different approach in one of my use cases.

I used the CBSubs Mailer actions to trigger personalized email messages to "inactive" users to get them to come back to the site.

After that I just manually filter from the CB User Management page the inactive users I want to remove and just tick-box them and delete them from that page.

Not 100% automated but works ok.
The following user(s) said Thank You: marketsetc

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum