Change user group in frontend

6 years 11 months ago #293521 by Andromeda57
Replied by Andromeda57 on topic Change user group in frontend
Strange... We even tried withoug a condition, so the user will get additional user group just when the profile is updated... But the user still does not get the other user group.. Even without any conditions... :((

Please Log in to join the conversation.

6 years 11 months ago #293537 by krileon
Replied by krileon on topic Change user group in frontend
Ensure CB Auto Actions is published and public within CB > Plugin Management. Below is also an example action for adding a usergroup on profile update.

Global
Triggers: onAfterUserUpdate
Type: Usergroups
User: Automatic
Access: Everybody
Action
Mode: Add Usergroups
Groups: SELECT_USERGROUPS_HERE


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 to join the conversation.

6 years 11 months ago - 6 years 11 months ago #293658 by Andromeda57
Replied by Andromeda57 on topic Change user group in frontend
Thanks,

tried this and auto action is published. But this does not work. User does not get the new user group...

After trying with trigger "AfterUserProfileSaved" it seems to work.. Will let u know the results...

Please Log in to join the conversation.

6 years 11 months ago #293673 by krileon
Replied by krileon on topic Change user group in frontend
onAfterUserUpdate only applies to frontend. onAfterUpdateUser only applies to backend. So if you need it to work on both frontend and backend you'll need to be sure to specify both of those triggers. The above example is tested working. Did you add conditions to it or modify it from the above suggestion in any way?


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.328 seconds

Facebook Twitter LinkedIn