syncing id with external db

syncing id with external db

by Heath Peeples -
Number of replies: 3

I would like to know if there is a way to sync moodle's mdl_user.id field with my external db user table primary key, so that I have a way to match records in the two databases.  Thanks for any help.

 

Average of ratings: -
In reply to Heath Peeples

Re: syncing id with external db

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The way you are 'supposed' to sovle this in Moodle is to put the external db's primary key value in Moodle's user.idnumber field.

In reply to Tim Hunt

Re: syncing id with external db

by Heath Peeples -

Well, I am doing that now.  The problem is that I am using the External tool and when i launch it I need a way to map my userid to moodle's.   The idnumber field unfortunately it not sent witht the Post back to my system..