« Return to Thread: manual user creation

Re: Creation of SAKAI_USER_ID_MAP entries was Re: manual user creation

by Jon Gorrono :: Rate this Message:

Reply to Author | View in Thread

On Feb 4, 2008 2:22 PM, Yuji Shinozaki <ys2n@...> wrote:

>
> On Feb 4, 2008, at 4:59 PM, Jon Gorrono wrote:
>
> > [Different 'Jon' ...... possibly with a similar message of the
> > day :-) ]
> >
> > By way making a partial answer to your question:
> > Adding someone to a site can add them to the map table if they're
> > not there.
> > Add someone in the guest box, for example and the UDP is asked for
> > an eid,
> > and what was entered in the box becomes the userid. the map table
> > gets an
> > entry and the site realms are updated with this info. No record is
> > added to
> > the user table.
>
> Understood, but what happens when the membership is provided through
> a Group Provider (e.g. CourseManagement Group Provider)?  What
> "event" puts the mappings in?  It can't be the original roster
> selection, since the rosters may change (so a new user may be added
> to Sakai through the Group Provider at any time).


AFAIK, it *is* the roster selection, or rather, the site save, that does
it...at that time all the roster azgroups are created, the
realm-role-group-functions are saved... the rosters can change, and if they
do, the site is refreshed and new user mappings are added, old are
dereferenced... if a user is dropped from a roster, when the effected users
login, their relationship in realms they have references to is updated at
that time. ('update participants' button will update all site participants
'now')....relatedly, if an enrollment gets dropped from a roster, or all
rosters, the related user eid is not removed from the mapping table.

So, it is only during realm refreshes that group providers can influence a
realm's constituency. Saving a site, refreshes all the related site and
group realms.



I should probably not be using either the term 'realms' or 'groups', not
sure which.... I think 'azgroup' might be the preferred term for 'realms',
or visa versa.




>
> I am partly asking because there are some things (University Photos
> for one, I believe) which are mapped to user id.  So how do you know
> what user id to use if they aren't already in the SAKAI_USER_ID_MAP?


I guess I was assuming that userid's are not usable unless they are in the
map table.... that is if the property setting to user the table is set.

If you are using eid mappings, there can't be members of the user table that
are not mapped in the user_id_map table, AFAIK.

But the reverse is possible, users can have mappings in the mapping table
and no entry in the sakai_user table. We have about  38 entries in our
sakai_user table, and 40000 mappings. All the 38 are among the 40.000.

What data maps to an user id and what maps to an eid is probably open to
much debate, but in the photo's case, it seems like the eid should be the
key.


>
> yuji
> ----
>
>
>
>
>
> >
> > --
> > Jon Gorrono
> > email{>+++++++++[>+++++++++++>++++++++++++>+++++++>+++++<<<<-]>+++++
> > ++.>++++.<---.>-.+++..---.-.+.>+.<++++++.<----.+.---.>+.<+++++++
> > +.>---.>>+.<<<----.-.>++.}
> >
> > http{ats.ucdavis.edu}
> > [see attachment: "message0.html", size: 8278 bytes]
> >
> >
> > Attachments:
> >
> > message0.html
> > https://collab.sakaiproject.org/access/content/attachment/
> > 0d74877e-53c9-496a-001a-9d12ca27f38a/message0.html
> >
> > ----------------------
> > This automatic notification message was sent by Sakai Collab
> > (https://collab.sakaiproject.org/portal) from the DG: Development
> > (a.k.a. sakai-dev) site.
> > You can modify how you receive notifications at My Workspace >
> > Preferences.
>
> -----
> Yuji Shinozaki
> Sr. Technical Lead/Project Manager
> University of Virginia
> Advanced Technologies Group
> ys2n@...
>
>
>


--
Jon Gorrono
email{>+++++++++[>+++++++++++>++++++++++++>+++++++>+++++<<<<-]>+++++++.>++++.<---.>-.+++..---.-.+.>+.<++++++.<----.+.---.>+.<++++++++.>---.>>+.<<<----.-.>++.}

http{ats.ucdavis.edu}
[see attachment: "message0.html", size: 5389 bytes]


Attachments:

message0.html
https://collab.sakaiproject.org/access/content/attachment/5b8e3653-1935-4280-80c8-4465cb34f22f/message0.html

----------------------
This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace > Preferences.

 « Return to Thread: manual user creation