[LON-CAPA-users] how to access user's role?

Mills, Douglas G dmills at illinois.edu
Mon Oct 1 15:36:16 EDT 2018


Hi All,

Recently I learned how to find out if a user is a member of a group or not and that has been very useful for us.  Now I'm wondering if there is a way to determine a user's role?  Specifically, we have a resource that we're blocking access to on a per section password basis (we're not using slots but rather a stringresponse where the answer is determined by which section the user is in).  The TA is going to give that password to the students who come to class to participate (and yes, a student could text the password to a student who is not there -- we'll have our eyes open for absent students working on the assignment for now...)  What I would like to do is to display the password to the TA. Instructorcomment would be perfect for this, except that they do not display to the Teaching Assistant role.  Is there a corresponding <tacomment> or something?  Otherwise, I'm thinking that if the "role" information is available as section and group and lots of other information is, I can just wrap the display of the password up in block tags which will have as their condition that the role eq "Teaching Assistant"  I've tried &EXT("user.course.role") so far with no success.  Thanks as always!

Doug

Douglas Mills
Director of Instructional Technology
Department of Chemistry
University of Illinois

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.lon-capa.org/pipermail/lon-capa-users/attachments/20181001/69bbdd01/attachment.html>


More information about the LON-CAPA-users mailing list