Questions tagged [usergroups]

For questions relating to user groups, in a security or permissions context, independent of platform.

343 questions
3
votes
5 answers

Database users and groups model

I have 2 entities: users and groups. Easiest model is user(id,name,etc...), group(id,name), user_group_rel(user_id,group_id). But I need to include groups into other groups. One user can be in many groups and groups can include users and subgroups…
VeroLom
  • 3,856
  • 9
  • 34
  • 48
3
votes
0 answers

Why can't I get the list of all users in a group in Django?

This is my view. def teacher_list(request): group = Group.objects.get(name='Teacher') users = group.user_set.all() return render(request, "acnt/teacher-list.html", { "users": users }) This is the template I am using. {% for teacher in…
MiniGunnR
  • 5,590
  • 8
  • 42
  • 66
3
votes
3 answers

Meteor.users.find() - how to filter by group in alanning:roles package

I'm trying to make an admin section on my website. The admin can go to the admin page and see a table of the users in his group. I only want to publish a the users that are in that admin's group. E.g. he is in the group ['soccer'] but I wouldn't…
William
  • 161
  • 2
  • 9
3
votes
2 answers

How to change tty group on Linux (build with buildroot)

I'm working on Linux Kernel 3.14.28 build with Buildroot for an embedded device. In /dev/, all ttys are root:root and not root:dialout like a standard Linux. So it is not possible to access any ttyX without being logged as root. How can I change the…
AntoineC
  • 111
  • 1
  • 2
  • 10
3
votes
1 answer

Manage web-application permission policies with JavaScript

I'm very curious to know what strategy usually use different developers for managing user permission policies to different parts of single-page web application. Just for a case: under single-page web app I mean web application with only one HTML…
3
votes
2 answers

Default permission/group data in Django

Every time I wipe the database of my Django app during testing (or when cloning or deployin), I have to go into /admin and set up permissions and groups. Where would I put the code that would populate the DB with them and what would it look like?
StokedOver9k
  • 129
  • 1
  • 9
3
votes
1 answer

How do you tackle choosing recipients or users like Google+ and Gmail?

In my app, I'm allowing users to create groups and then add their friends to them in order to share data. When creating the group, I would like to be able to do something very similar to the picture below from Google+, using an Android…
edwoollard
  • 12,245
  • 6
  • 43
  • 74
3
votes
1 answer

Symfony2 with FOSUserBundle : Access based on group rights

I can't seem to find documentation on how to use the rules that are linked to a fos_group for access control. In this project I want to be able to define new groups later on that use predefined roles like: ROLE_USER, ROLE_AMDIN and…
Robin Hermans
  • 1,579
  • 1
  • 24
  • 52
3
votes
1 answer

How to get all child of a user group in Joomla?

I have a user_groups table id parent_id title 1 0 Public 2 1 Registered 3 2 Author 4 3 Editor 12 2 Customer Group (Example) You can see here Register(2) have 2…
user2182010
  • 121
  • 2
  • 9
3
votes
2 answers

Are there any online user group meetings?

I must admit that I am incredibly jealous of those developers who happen to live near active user groups (e.g. the ALT.NET guys in Austin). I often read blog posts and listen to podcasts that reference these in-person meetings and find myself…
Kevin Pang
  • 41,172
  • 38
  • 121
  • 173
3
votes
2 answers

symfony2 acl groups

Generally I have the following business model: There're users and groups. Each user belongs to only one group and amount of groups is not determined beforehead (as well as amount of users for most sites). Also there're several different busyness…
kirilloid
  • 14,011
  • 6
  • 38
  • 52
2
votes
1 answer

Unable to access "Users and Groups" in Plone 4

Whenever I try to access "User and Groups" in Plone Site Setup, I'm getting the following error : Traceback (innermost last): Module ZPublisher.Publish, line 127, in publish Module ZPublisher.mapply, line 77, in mapply Module…
sreid
  • 89
  • 4
2
votes
4 answers

Hierarchical Group Permissions Theory/Resources?

Does anyone know of some good resources related to setting up heirarchical user account systems? I'm currently setting one up and am struggling with some of the more complex logic (especially with determining permissions). I was hoping I might be…
Wilco
  • 32,754
  • 49
  • 128
  • 160
2
votes
1 answer

Filter view based on the users Group

I am trying to filter the query further to only show records where the Groups matches the logged in users group. I am new to Python and not sure how to add an additional filter into the below view. View @login_required(login_url='login') def…
Farid
  • 130
  • 9
2
votes
1 answer

NestJS - How to implement RBAC with organization-scoped roles

I am designing a REST backend in Nest.js that needs to allow Users to be a part of multiple Organizations. I want to use role-based access control, such that a user can have one or more named roles. Crucially, these roles need to be able to be…
Alex Wohlbruck
  • 1,340
  • 2
  • 25
  • 41