Hello Massimo, Here what I found as a temporarily solution :
I made a auth_group_allowed that is a m2m relation between auth_user and auth_group. So, we can attribute each user a set of groups in which he is allowed to change with. Then this controller can let the user pick the group he want : @auth.requires_login() def chmembership(): j=db(db.auth_membership.user_id==auth.user.id).select( db.auth_membership.id).first().id rows=db(db.auth_group_allowed.user_id==auth.user.id ).select(db.auth_group_allowed.group_id) groupSet={} for row in rows: authgrouprole=db(db.auth_group.id ==row.group_id).select(db.auth_group.role).first().role groupSet[row.group_id]=authgrouprole db.auth_membership.group_id.requires=IS_IN_SET(groupSet) form = crud.update(db.auth_membership,j) return dict(form=form, j=j, groupSet=groupSet) It's just the beginning since I can't handle the case were a user is involve in more then one group for now. Please comment? Regards Richard On Fri, Sep 17, 2010 at 9:56 AM, mdipierro <mdipie...@cs.depaul.edu> wrote: > no and it is very much needed. Any takers? > > On Sep 17, 8:50 am, Richard Vézina <ml.richard.vez...@gmail.com> > wrote: > > Hello, > > > > I need to let some of my user changing of membership into a plage of > > existing members number. Is there mechanism already existing in web2py or > do > > I have to program it from scratch? > > > > Thanks > > > > Richard >