Hi Gaurav,

This might be a way of solving your situation, You can use customuser model
and then add a field like role or group ( choice field of Team A, Team B).
Once you have segregated the user in groups, you can check the user.role at
the time of log in and then redirect them to their own dashboard/views.

Thanks and regards,
Abhishek Choudhury

On Tue, 30 Nov 2021 at 3:42 PM, Kumar Gaurav <gauravcusat1...@gmail.com>
wrote:

> Hello All,
>
>
> I have a recognition portal where people can post recognition for their
> team members. It is being used within one team only at present.
> Now I want to scale it to other teams but I want to render only the
> content specific to their team coming to the portal. Means If I am from
> Team A , I should see only the posts done by my team member and not others.
>
> I am not using the Django pre defined User model as authentication is done
> through SSO.
>
> How Can I group the users and show the contents related to them only.
>
> Can someone show me the correct direction to proceed. Any help is very
> much appreciated.
>
> Thank You!!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d4894e89-18fe-49cd-a40f-718a16c9ac60n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d4894e89-18fe-49cd-a40f-718a16c9ac60n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Thanks and regards,
Abhishek Choudhury
Mobile: +91 7903717967

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2B3kJUY6bzp5kncZs%2BxV%3D2LsXXj0Ds_j1nQGEHorfVyT_Q2F1A%40mail.gmail.com.

Reply via email to