I've started looking at automatically updating users' profiles by assigning a value to a custom field, based on pre-existing mapped data. Basically, I will be doing two things:
- Assign a value that can be used to restrict access to activities/resources on guest pages at course level.
- Add a system role that enables restrictions on block content.
Am I right in thinking there isn't an existing way to do this before I continue to develop my logic?
And as a bonus question; how sensible would it be to utilise the user_loggedin event in an observer class, and/or whether it would be better to run it as a scheduled task - I don't anticipate the mapped data to update that often, but it doesn't change the overheads much in theory.