Working with groups module, check if user is a member of the group and if they are the admin of that group.

Created on 13 October 2024, about 1 month ago

Hello and thank you for this great module. I am in the process of learning ECA and moving over from Business Rules module.

Problem/Motivation

On entity presave of a user record I am trying to:
Check if the user is a member of a group. the site has over 80 groups and they can be part of 1 or more of those groups.
Check if a boolean field in the group that they are a member of is set.

If neither of the above conditions are NOT true:
Three fields on the user record need to be changed.

If both of these conditions are true:
Check if the user is the admin of the group and if that is true set a Drupal role for the user.

Would love some help figuring this out please.
Thank you in advance for your time.

💬 Support request
Status

Active

Version

2.1

Component

Miscellaneous

Created by

🇨🇦Canada avo webworks Ottawa, Ontario, Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024