Authentication

 
 
Picture of Heath Peeples
syncing id with external db
 

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: -
Tim at Lone Pine Koala Sanctuary
Re: syncing id with external db
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

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.

 
Average of ratings: -
Picture of Heath Peeples
Re: syncing id with external db
 

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.. 

 
Average of ratings: -