File:  [LON-CAPA] / loncom / html / adm / help / tex / Institutional_Integration_User_Categories.tex
Revision 1.3: download - view: text, annotated - select for diffs
Thu Jun 26 20:15:01 2014 UTC (10 years ago) by raeburn
Branches: MAIN
CVS tags: version_2_12_X, version_2_11_X, version_2_11_5, version_2_11_4_uiuc, version_2_11_4_msu, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3, version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2, version_2_11_1, version_2_11_0, HEAD
- Fix quotes.

\label{Institutional_Integration_User_Categories}
Users in a domain can be assigned one or more institutional affiliations
by the Autoupdate process which reconciles user information in LON-CAPA
with institutional directory information. User type (or affiliation)
can determine such things as (a) default portfolio quota, (b) the
types of user information which may be updated in different contexts,
(c) whether a user can self-enroll in a course. 

Prior to LON-CAPA 2.11.0 the possible institutional types in a domain
were defined by \emph{inst\_usertypes()}. Examples of institutional
types might be: Faculty, Adjunct, Staff, Student etc.
In addition to any types defined in \emph{inst\_usertypes()}, a type
{}``other'' will also be available for assignment to users who do
not fall in any of the recognized categories of user. In the absence
of any defined user categories, the type {}``other'' applies to
all users from a domain.

Starting with LON-CAPA 2.11.0 use of the inst\_usertypes()
subroutine is deprecated. The domain configuration web GUI
accessible to Domain Coordinators is now used to
manage institutional types.  If you have previously
customized the inst\_usertypes() routine, then values set there 
will be used when displaying the ``Institutional user types''
section in the domain config screen for: 
Default authentication, language, timezone, portal and types.

Once a Domain Coordinator has visited that screen and saved the 
settings, configuration thereafter will be via the web GUI of
values stored in the domain's configuration.db file on
the primary library server in the domain, and values in
inst\_usertypes() will no longer be consulted. However, if you have
created other custom routines in localenroll.pm which call 
inst\_usertypes() internally, you will likely want to continue to
maintain it. 

\textbf{\large inst\_usertypes}{\large \par}

The routine accepted three arguments:

\begin{enumerate}
\item \$dom - domain
\item \$usertypes - reference to hash which will contain key = value, where
keys are institution affiliation types (e.g., Faculty, Student etc.)
and values are titles (e.g., Faculty/Academic Staff)
\item \$order - reference to array which will contain the order in which
institutional types should be shown when displaying data tables (e.g.,
default quotas or updateable user fields (see Domain Configuration
menu)
\end{enumerate}
The routine returns 'ok' if no errors occurred.

At MSU there are six different categories of users.

\begin{quotation}
\texttt{sub inst\_usertypes \{}
\begin{quotation}
\texttt{my (\$dom,\$usertypes,\$order) = @\_;}

\texttt{my \$outcome = 'ok';}

\texttt{\%\{\$usertypes\} = (}
\begin{quotation}
\texttt{Faculty => 'Faculty/Academic Staff',}

\texttt{Staff => 'Support Staff',}

\texttt{Student => 'Student',}

\texttt{Assistant => 'Assistant',}

\texttt{StaffAff => 'Affiliate',}

\texttt{StuAff => 'Student Affiliate'}
\end{quotation}
\texttt{);}

\texttt{@\{\$order\}=('Faculty','Staff','Student','Assistant','StaffAff','StuAff');}

\texttt{return \$outcome;}
\end{quotation}
\texttt{\}}
\end{quotation}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>