Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
8 tasks
ymdahi opened this issue Jun 22, 2024 · 0 comments
Open
8 tasks

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

ymdahi opened this issue Jun 22, 2024 · 0 comments

Comments

@ymdahi
Copy link

ymdahi commented Jun 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant