Richard,

I am trying to create a number of number of groups, who are assigned users 
with different roles. A good example is where you have different taxi 
companies, that have its own dispatch personnel and drivers. For example, 
lets say you have 2 companies with the following employees;

Company A
1.) Mark Biggs - Driver
2.) Kerry Hinds - Dispatcher

Company B
1.) Mimi Johnson - Driver
2.) David Hanson - Dispatcher

I want to create 2 groups, add employees to each, an assign roles. 

I read the chapter on access control, but I still don't understand how to 
create a multi-group user database.


On Tuesday, October 29, 2013 11:20:02 AM UTC-5, Richard wrote:
>
> What do you want exactly? auth_membership is a many-to-many table that put 
> in relation auth_user and auth_group...
>
> What do you mean by implement auth_group, etc. you don't need to, they are 
> built-in web2py...
>
> If you explain more what you want exactly we can provide more insight on 
> what you need...
>
> If you just want to activate RBAC you should read the book, about that : 
> http://web2py.com/books/default/chapter/29/09/access-control?search=RBAC#Access-Control
>
> Richard
>
>
> On Tue, Oct 29, 2013 at 10:46 AM, raferbop <rafe...@gmail.com<javascript:>
> > wrote:
>
>>
>> I am having a difficult time in understanding how to implement the above 
>> functions, and the chapter on authentication skims over the topic. Massimo 
>> has some great examples in the appliances section, but I haven't come 
>> across an example that utilizes a many-to-many relationship with respect to 
>> groups and roles. I would appreciate if someone could direct me to some 
>> really good or extensive tutorials on that subject area.
>>
>> Kind regards,
>>
>> -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+un...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to