× Experiences & Stories

Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.

Not sure how to erase all userdata for a cohort/joomla usergroup

4 years 5 months ago
A James
Posts: 8
More
Topic Author
Not sure how to erase all userdata for a cohort/joomla usergroup #1
Hi there,

Hope someone experienced on Moodle can help out. We have been using joomla for years and now we are going to start integrating it with moodle.

We have different schools using our system. Till now we had different joomla sites, one for each school. Now we have one joomla site integrated with one moodle site. We have created one joomla usergroup for each school connected to its correspondant cohort inside moodle. My concern and what I have just discovered is that on each term, we have to reset courses which affects all users in all cohorts.

The problem is that we delete and upload users in different dates, not all schools send students data in the same date so I should be able to erase data in the courses by cohorts. Any idea on how I can do this. Not very experienced in moodle so I am a bit lost.

Also, on uploading users each term for each cohort, would uploading them on moodle bring any issue on joomla. What is the best procedure. We normally upload lists of more than 5000 thousand students in each cohort.

Thanks a lot

Please Log in or Create an account to join the conversation.

4 years 5 months ago
Antonio Durán
Posts: 7754
More
Not sure how to erase all userdata for a cohort/joomla usergroup #2
Hi.

I am sorry, but I don't fully understand your process/needs.

> My concern and what I have just discovered is that on each term, we have to reset courses which affects all users in all cohorts.

What do you mean? That you re-use the courses, and remove all course data from them each term?

> The problem is that we delete and upload users in different dates, not all schools send students data in the same date so I should be able to erase data in the courses by cohorts.

If what you want to do is unenrol cohort users from a course, maybe you just need to remove the cohort?

> Also, on uploading users each term for each cohort, would uploading them on moodle bring any issue on joomla. What is the best procedure. We normally upload lists of more than 5000 thousand students in each cohort.

Probably it will cause a problem, as 5000 users is a lot for syncing: PHP timeouts and memory limits will kick in. I think a custom migration process may be needed for this, although I am not sure how much work it could need.

Please Log in or Create an account to join the conversation.

4 years 5 months ago
A James
Posts: 8
More
Topic Author
Not sure how to erase all userdata for a cohort/joomla usergroup #3
Hi Antonio,

Thanks for your reply. I think we have solved the problem about clearing data from courses, at least for now.

Now I am uploading the first 2000 users and it is taking literally too much, I started yesterday and it can only cope with 500 each time and it takes hours for just 500. Is this normal?

I am uploading users with "Import users from Excel or CSV" component through Joomla. Would it be better to upload them from Moodle? I made numerous tests and uploading from Moodle does not sync with joomla automatically. Any advice would be appreciated.

Also in Joomdle "System check" - Joomdle Web services it appears a red cross "Invalid response value detected. Check that Joomdle auth plugin is enabled in Moodle". I have checked and it all seems ok to me, following what says here www.joomdle.com/wiki/System_health_check k .

Cheers,

Please Log in or Create an account to join the conversation.

4 years 5 months ago
Antonio Durán
Posts: 7754
More
Not sure how to erase all userdata for a cohort/joomla usergroup #4
Hi.

> Now I am uploading the first 2000 users and it is taking literally too much, I started yesterday and it can only cope with 500 each time and it takes hours for just 500. Is this normal?

I depends on the setup, but I know it is a slow process: for each user created, Joomla needs to connect to Moodle and create user there.

> I am uploading users with "Import users from Excel or CSV" component through Joomla. Would it be better to upload them from Moodle?

I think it is better from Joomla.
From Moodle, you need to set auth field, in CSV file, to joomdle.

> Also in Joomdle "System check" - Joomdle Web services it appears a red cross "Invalid response value detected. Check that Joomdle auth plugin is enabled in Moodle"

This is the most important thing: until you have system check all green, you should not create any users, as they won't be correctly synced.
If you go to Manage authentication in Moodle, is Joomdle plugin enabled?

Please Log in or Create an account to join the conversation.

4 years 5 months ago
A James
Posts: 8
More
Topic Author
Not sure how to erase all userdata for a cohort/joomla usergroup #5
Hi,

Yes joomdle auth plugin is enabled, see screenshots attached, maybe I am missing something...

on this page https://mysite/index.php?option=com_joomdle&task=ws.server&format=xmlrpc

I get this XML-RPC Error (1): Invalid token:

I checked tokens in moodle and joomdle and they are well set.
Attachments:

Please Log in or Create an account to join the conversation.

4 years 5 months ago
A James
Posts: 8
More
Topic Author
Not sure how to erase all userdata for a cohort/joomla usergroup #6
Oh, how stupid, auth plugin was not enabled, sorry. now all green in system check!

but I still get XML-RPC Error (1): Invalid token: , is this important?

Thanks and sorry, I must be blind!

Please Log in or Create an account to join the conversation.

4 years 5 months ago
Antonio Durán
Posts: 7754
More
Not sure how to erase all userdata for a cohort/joomla usergroup #7
That's not what I meant. You checked external services.


You need to check Manage authentication section, under Plugins->Authentication.

Please Log in or Create an account to join the conversation.

4 years 5 months ago
Antonio Durán
Posts: 7754
More
Not sure how to erase all userdata for a cohort/joomla usergroup #8
You posted while I was replying , glad you solved it.

As for this: but I still get XML-RPC Error (1): Invalid token: , is this important?
Wher edo you get that if system check is all green?

Please Log in or Create an account to join the conversation.

4 years 5 months ago
A James
Posts: 8
More
Topic Author
Not sure how to erase all userdata for a cohort/joomla usergroup #9
In this page www.joomdle.com/wiki/System_health_check k you mention checking that url in case of trouble in system check.... I suppose not important anymore as I do not have any issues in System check anymore.

Thanks a lot for your help

Please Log in or Create an account to join the conversation.

4 years 5 months ago
Antonio Durán
Posts: 7754
More
Not sure how to erase all userdata for a cohort/joomla usergroup #10
That's right, if everything is green you are all set. Glad I could help.

Please Log in or Create an account to join the conversation.