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

Created on 15 October 2024, 10 months ago

Hello folks.

We are in the process of moving from business_rules module to ECA.

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. I have read this issue https://www.drupal.org/project/group_action/issues/3348856 💬 How to use? Active but need to figure out how this relates to membership of group not nodes.

Thank you in advance for your time.

💬 Support request
Status

Active

Version

1.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