Skip to content

Check all Group Members against ClassList to re-sync on Cron #22

Description

@ymdahi
  • Cron task
  • $Members: Get list of all members in a Group https://drupal.stackexchange.com/questions/298400/get-user-ids-of-group-members
  • $ClassList: Get LMS ClassList using OU
  • For each Member, lookup user to see if they are in ClassList
    • If they are in ClassList, check if there Role needs to change
    • Log the change of Role if occurs
  • If they are not in ClassList, remove them from Group
    • Log the removal of the member

Consider: maybe it makes sense to remove the Membership from all occurance of Group using OU value.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions