Forums | Mahara Community
Mapping groups with institutions
21 March 2009, 16:34
Hi! Is it possible to map new users (who have opt-in to an institution) automatically to a group? Thanks for your answer.
22 March 2009, 5:05
short answer: you will find the informations about your questions right here in the forums
detailed howto :
While creating/editing your group you can select the option:
Users auto-added? YesNo
this will Automatically put all new users into this group!
This feature is a great tool to get an overview who joined the mahara site, to send welcomes e.g.
22 March 2009, 18:06Indeed Note that this option is only available for site admins who are creating groups, to prevent the chance of spam.
23 March 2009, 10:08
What I'm trying to explain you: When there are more than only one institutions and more than only one groups: How can I set up that (for example) users, who are members of instituation 1 where automatically mapped to group 1 ... 2 to 2 and 3 to 3 ... and so on ...
23 March 2009, 11:46
If I have understood you right, Maybe it woul be useful to program some sort of script that checks the users that are enrolled in a particular institution and add them to the corresponding groups you want them enrolled.
You need to use the tables: usr, autho_instance, group and group_member.
23 March 2009, 21:23Hi - there's no options to do this in Mahara right now, but as Aaricia says it can probably be done with a bit of code. The method addUserAsMember in lib/institution.php would be a good place to start perhaps.