貼文的作者是 Jerry Lau

Thank you for responding but it is not about adding users 微笑

This is about what would happen if the user has not been added or created in Moodle but that username existing in the enrolment file and is synced by moodle? 

Would it create that username or would it say something like "user not found and enrolment record skipped"?

this is through a scheduled task... which reminds me, is there a log to show automated scheduled enrolment task results?

This is interesting because I tried to map UPN to email and it did not work either when the user logs in (token claim method) nor do I see the change when I execute the scheduled task "Sync users from Microsoft Entra ID (\local_o365\task\usersync)" (Graph API method)

This brings me to another question does the \local_o365\task\usersync map the email field either from UPN or Mail whichever we set up and update it?

Let's say we have 290,000 users when I run it, it only does in a few hundreds not all .. how can I make it run and go through ever user? What is their logic?

Thanks

This is good news... I read about the "optional" in the field mapping setting but did not think much about it and your thread is exactly the same problem I had. 

Thank you again for this and I will try it soon

Dave

Hello everyone.

Could anyone tell me if users are automatically created in Moodle even if they do not exist if they were uploaded as part of the enrolment file?

I believe previous versions did. Our users are unique because they are assigned a student id.

https://moodle.org/mod/forum/discuss.php?d=468918

thanks

評比平均分數: -