- Posts: 12
[Solved] Cron Job to sync Moodle-Joomla user profiles
- Jack Bradley
- Topic Author
- Offline
- New Member
-
Less
More
13 years 1 month ago - 13 years 1 month ago #1
by Jack Bradley
[Solved] Cron Job to sync Moodle-Joomla user profiles was created by Jack Bradley
Hi,
Instead of manually adding users to Joomla and Moodle. Is there a way we can setup a cron script which can automatically add users to Joomla or Moodle or Joomdle.
Thanks,
Jack
Instead of manually adding users to Joomla and Moodle. Is there a way we can setup a cron script which can automatically add users to Joomla or Moodle or Joomdle.
Thanks,
Jack
Last edit: 13 years 1 month ago by Antonio Durán.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
13 years 1 month ago #2
by Antonio Durán
Replied by Antonio Durán on topic Cron Job to sync Moodle-Joomla user profiles
Not sure why you would want a cron script for.
Are you talking about migrating existing users, or for new ones?
Are you talking about migrating existing users, or for new ones?
The topic has been locked.
- Jack Bradley
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 12
13 years 1 month ago #3
by Jack Bradley
Replied by Jack Bradley on topic Cron Job to sync Moodle-Joomla user profiles
Hi Antonio,
Right now tehre are three buttons in Joomdle component user section, i.e. Add to Moodle, Add to Joomla and Add to Joomdle. So let say a user is directly registered through Moodle and now I want to add this user account to Joomla as well, I will have to go to Joomdle component and will have to manually add this user account to Joomla.
Rather than manually adding it, is there a way (may be a cron script) which will automatically process all those accounts.
Hope this is clear, please let me know if you need further details.
Thanks,
Jack
Right now tehre are three buttons in Joomdle component user section, i.e. Add to Moodle, Add to Joomla and Add to Joomdle. So let say a user is directly registered through Moodle and now I want to add this user account to Joomla as well, I will have to go to Joomdle component and will have to manually add this user account to Joomla.
Rather than manually adding it, is there a way (may be a cron script) which will automatically process all those accounts.
Hope this is clear, please let me know if you need further details.
Thanks,
Jack
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
13 years 1 month ago #4
by Antonio Durán
Replied by Antonio Durán on topic Cron Job to sync Moodle-Joomla user profiles
Joomdle can automatically sync user to the other platform.
So, if you create a user in Moodle (with the right config) he should automatically be created in Joomla, so no need for manual add accounts, or have a cron job for it.
So, if you create a user in Moodle (with the right config) he should automatically be created in Joomla, so no need for manual add accounts, or have a cron job for it.
The topic has been locked.
- Jack Bradley
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 12
13 years 1 month ago #5
by Jack Bradley
Replied by Jack Bradley on topic Cron Job to sync Moodle-Joomla user profiles
Thats Great Antonio, But I have never seen this is automatic every time I have to manually add accounts. I am using Joomla2.5, Moodle2.4 and Joomdle R0.9.
Also same for courses everytime I have to manually publish the course for sell. There are setting available in Joomdle component but seems these are not working. I have this is third Joomdle configuration but all are having same behaviour. All needs manual process. Hope you will have some solution for this.
Thanks,
Jack
Also same for courses everytime I have to manually publish the course for sell. There are setting available in Joomdle component but seems these are not working. I have this is third Joomdle configuration but all are having same behaviour. All needs manual process. Hope you will have some solution for this.
Thanks,
Jack
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
13 years 1 month ago #6
by Antonio Durán
Replied by Antonio Durán on topic Cron Job to sync Moodle-Joomla user profiles
For courses, you will need to do it manually, as on Moodle 2.0 courses can't be automatically created on the shop with a price, so better doing it manually.
As for users, if you create in moodle, you need to:
- enable "sync users" in joomdle config in moodle
- select joomdle as auth method when creating the user
If you create them in joomla, you just need to have "auto-create users" enabled in joomdle config in Joomla.
As for users, if you create in moodle, you need to:
- enable "sync users" in joomdle config in moodle
- select joomdle as auth method when creating the user
If you create them in joomla, you just need to have "auto-create users" enabled in joomdle config in Joomla.
The topic has been locked.
- Jack Bradley
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 12
13 years 1 month ago #7
by Jack Bradley
Replied by Jack Bradley on topic Cron Job to sync Moodle-Joomla user profiles
Thank you so much Antonio.
I was not aware that auth method for new users should be joomdle. I have added following in moodle config file
$CFG->registerauth = 'joomdle';
And everything is perfectly synched now.
Thanks again
Jack
I was not aware that auth method for new users should be joomdle. I have added following in moodle config file
$CFG->registerauth = 'joomdle';
And everything is perfectly synched now.
Thanks again
Jack
The topic has been locked.