Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Suggest not letting them be an owner then. Create the group with the owner being a centralized user of your choosing and force them to join the group as an Administrator. That will give them the highest available privileges without being able to delete it. The only alternative is you'd need to act on the gj_onBeforeDeleteGroup trigger and redirect away using a Redirect action in CB Auto Actions with an error of some kind to block the delete.Group deletion
I have an AA triggered onAfterUserApproval and creates a group having trigger user as owner.
The group created belongs to a specific group category and this category has only 1 group per user due to Groupjive->Categories->Group->Create access restriction that doesn't allow any user to create groups in this category.
What I need is users not to be able to delete these groups from their profile although they are owners. So these groups are like "system" groups and can't be deleted.
Is that possible?
Not sure I understand the need for this given you already have a Group tab visible on their profile that will display it and link to it. At any rate the non-SEF URL that you should use is as follows.Group link
Following /menu_alias/cateogry_id-category_name/group_id-group_name found in #329903 how can I use href in a field name in the profile to link with the group so the viewing user can go to the specific group related to the displayed user. For instance, using <a href="community/my-groups/1-groupcat" will open the category and show all groups from all users in the category. I need to open the specific group in the category related to the specific displayed user. Now, as this group is a group created by AA onAfterUserApproval (as mentioned above), it is difficult to include the group id in each link for each user. The common thing between these groups is part of their name. During creation is set to "Some text [cb_filename]". So "Some text" is common to all groups in the category while [cb_filename] changes according to different values. So, maybe I can somehow connect [user_id] & [cb_filename] for the displayed user in the link to find the specific group name? Or something else...?
Please Log in or Create an account to join the conversation.
Suggest not letting them be an owner then. Create the group with the owner being a centralized user of your choosing and force them to join the group as an Administrator. That will give them the highest available privileges without being able to delete it. The only alternative is you'd need to act on the gj_onBeforeDeleteGroup trigger and redirect away using a Redirect action in CB Auto Actions with an error of some kind to block the delete.
Please Log in or Create an account to join the conversation.
Meaning someone other than them will own the group. They would just be joining it, but being given the administrator group user status. You can do this using the New Group method of the CB GroupJive auto action type. Simply set Unique to No. Now the owner of the group and the user joining the group can be separate. The below should accomplish that.You mean that the centralized user will force them to join as administrators manually? Is there a AA for this?
Not sure what you're referring to. There is no system action that asks them to confirm delete. The confirm delete dialog is just javascript. The redirect would have to happen on gj_onBeforeDeleteGroup trigger to try and interrupt the delete.Also, setting the AA to redirect the user doesn't seem to work due to another system AA which is asking for confirmation on deleting the group. Maybe by de-activating this system action it would work? But then the rest of the groups would be deleted immediately upon clicking delete (without confirmation). How can I set the AA to act only on all groups in a specific group category?
Please Log in or Create an account to join the conversation.
Really nice thanks, I will use it for sure somewhere else but for this specific usecase doesn't help much.Mode: New Group
Name: My Group!
Owner: CENTRALIZED_OWNER_USER_ID_HERE
Unique: No
Auto Join: Yes
Group Status: Admin
User: (leave empty)
Please Log in or Create an account to join the conversation.