I'm trying to prevent unlicensed users that are attached to a Shared Mailbox in O365 from being created as users in moodle. Does anyone have any ideas on the best way to accomplish this?
All of my real users have a "department" set in AzureAD, but I can't figure out how to restrict users that don't have anything in department using regular expressions. Can someone point me in the right direction?