I use openID connect (SSO Office365) to authenticate (or create create dynamicaly users) in Moodle (3.9) - php 7.4.
but where can i define the role for a new user (auto created from Azure 0365 account)
i want to assign some users to teacher's role and others users to student role.
Moodle Enrollement plugin give me on a choice to assign one default enrollement.
Thanks for any response