Re: [web2py] Re: how to add users to existing programmatically using an if statement

2019-04-04 Thread micah jatta
thanks a lot Leonel!! [image: Mailtrack] Sender notified by Mailtrack 04/04/19, 2:10:37 PM On Sun, Mar 31,

[web2py] Re: how to add users to existing programmatically using an if statement

2019-03-31 Thread Leonel Câmara
register_bare returns the user record, so you can get user_id in user.id You can get the group id by doing # Assuming you create a group with role = 'Manager' and another with role = 'Assistante' group_id_manager = auth.id_group('Manager') group_id_assistant = auth.id_group('Assistant') Alterna