How To / General
Retrieving moodle userid
- Web Buster UK Ltd
-
Topic Author
- Offline
- Elite Member
-
Less
More
4 years 6 months ago #1
by Web Buster UK Ltd
Retrieving moodle userid was created by Web Buster UK Ltd
Hi Antonio, is it possible to retrieve a user's moodle id to be mapped onto a field in Joomla/Community Builder?
Currently to retrieve a user's moodle id, we have to query the moodle database each time. If we could have a field within joomla prefilled with the moodle id, it'd make things a lot more convenient.
Currently to retrieve a user's moodle id, we have to query the moodle database each time. If we could have a field within joomla prefilled with the moodle id, it'd make things a lot more convenient.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
4 years 6 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Retrieving moodle userid
Hi.
Sorry for the slow reply, I read your post but needed to check first, and then I forgot about it
Right now, you cannot map Moodle user ID field. Also, I don't know if you are syncing profile data from Moodle to Joomla.
We could see if it could be added, as I am not sure.
Other option is to create a simple user plugin that runs after joomdlehooks, an calls Joomdle's user_id function to get Moodle's user ID and stores it wherever you want. This would have the benefit of not needing to have data sync from Moodle to Joomla.
Sorry for the slow reply, I read your post but needed to check first, and then I forgot about it
Right now, you cannot map Moodle user ID field. Also, I don't know if you are syncing profile data from Moodle to Joomla.
We could see if it could be added, as I am not sure.
Other option is to create a simple user plugin that runs after joomdlehooks, an calls Joomdle's user_id function to get Moodle's user ID and stores it wherever you want. This would have the benefit of not needing to have data sync from Moodle to Joomla.
Please Log in or Create an account to join the conversation.