I have a school chain and i export them in to moodle from an xml.
First, I add export users, categories and courses and enroll users to courses.
My user count is 8K, and course count is 20K. The enrollment worked correctly.
I need to add pages to a course for specific students from enrolled group.
When I add a page manually, and create groups and grouping. I works perfect. But when I run a script that reads from an xml. I can add pages, groups etc in database. I can show groups, groupings at moodle page, but pages doesn't appear.
I didn't understand the problem.