Quote:
Originally Posted by SilVert
Has anybody deleted a user, then tried to get them automatically recreated?
i have a test user, created the account through the integration script. deleted the user, now whenever i go back to the integration script, it gives me an error on line 113
|
I saw your post on the gallery site...it was a bit cryptic but one of the devs answered your question earlier in the thread:
http://gallery.menalto.com/node/35249
Basically -- when you delete an emebedded user in gallery (from the site admin page) it doesn't delete all of the information related to the user. One user reference still exists in the externalIdMap table....this is the table that links a userid from VB to a userid in gallery. And when you're trying to recreate the user, the userid exists in externalIdMap already -- so it fails. Embedded gallery is designed to have all user functions controlled by the embedding app (VB). So what you get when you delete a user from within Gallery and not the embedding app is to be expected...or explained at least. Its not really robust, imho...but since you should really be creating a Gallery user when a user is created in VB -- it makes a bit of sense.
That being said, that's why I created the plugins for VB....so that you can control the users from VB. And why i'm working on the group thing.