Questions tagged [usergroups]

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

343 questions
6
votes
2 answers

django custom user model groups and permissions

I am trying to implement custom user model in my django application. If I just copy and paste the code from this article, it works great. But I wish this custom user model to have permissions and groups. So I added this inheritance to…
user3262515
  • 173
  • 1
  • 10
6
votes
1 answer

django: displaying group users count in admin

I would like to change admin for a group, so it would display how many users are there in a certain group. I'd like to display this in the view showing all groups, the one before you enter admin for certain group. Is it possible? I am talking both…
gruszczy
  • 40,948
  • 31
  • 128
  • 181
5
votes
1 answer

How to assign a user to a group at signup using django-userena?

I would like to separate users into two different groups, employer or employee, at signup. I'm using django-userena and for the employer group I'm thinking of using a clone of the same signup view except with a different url tied to it. So whoever…
Jesramz
  • 97
  • 1
  • 7
5
votes
2 answers

Keycloak Authorization - best practice roles vs groups

I have a web-application secured with Keycloak. To keep the description of the service short, we have Users and Documents as entities in the service. The users may have access to none or more documents and may edit or read the document. Currently we…
AlexanderNajafi
  • 1,631
  • 2
  • 25
  • 39
5
votes
1 answer

Postgres: how to grant an user to add more users to a group

So I know in postgres a group is nothing but a role. But I'll still use groups here. Say I created a group called my_group as superuser. I am user user_1. I want to give user_1 permission to add more users into my_group. What is the command I…
perryzheng
  • 199
  • 1
  • 8
5
votes
1 answer

Check for groups a local user is a member of

I have the code to get the members of a local group example administrators private void GetUserGrps() { using (DirectoryEntry groupEntry = new DirectoryEntry("WinNT://./Administrators,group")) { foreach (object member in…
user175084
  • 4,550
  • 28
  • 114
  • 169
5
votes
2 answers

facebook api 2.4, user_group permission

i have make a web site that required user_group permission, but when i decided to Publish it, i submit my apps for the review, i have discovered that user_group permission could not be approved. But my website need to get the user groups list, how…
terzi_matte
  • 175
  • 1
  • 10
5
votes
8 answers

What compels you to attend your local user group(s)?

So I'm in Des Moines, Iowa and we have a good number of user groups in our area considering our size. Ruby, .Net, Java, Agile, *nix, etc... Well, tonight a good number of us "leaders" of said user groups got together for a couple drinks and to talk…
Levi Rosol
  • 4,398
  • 6
  • 28
  • 36
5
votes
6 answers

Determine all groups for a defined user

I am currently creating a java method(part of and XPages managed bean) to retrieve a list groups a user(not necessarly current user) is a member of. Is there any easy method to retieve this information or am i going to have to loop through all the…
JMCooper
  • 77
  • 2
  • 6
4
votes
3 answers

Odoo 10 :Creating Security rules for custom module

Goal : To add an option in the user form that has the label ‘Demo module access’ with a drop down menu to choose the security groups for a custom module. Model name : simcard_simcard Module name : simcard my ir.model.access.csv…
Anudocs
  • 686
  • 1
  • 13
  • 54
4
votes
2 answers

Convert SID's to usernames/groups?

I'm looping through a network directory and trying to output the user/group names (permissions) associated with each file/folder. I'm getting the SID's back but I want the names like "group_test" and not "S-1-5-32-544". Here's my code - var files =…
tempid
  • 7,838
  • 28
  • 71
  • 101
4
votes
1 answer

Assign permissions of group to the user in django

I read in Django documentation that when I add an User in a group, it will automatically have the permissions granted to that group. So, in my application I created a group called "admin" via admin interface and I gave the permission I needed to it.…
A.Raouf
  • 2,171
  • 1
  • 24
  • 36
4
votes
2 answers

Add user to multiple groups with Puppet

I'm attempting to assign users to multiple groups with a manifest, but am running into walls. Attempt 1: class usergroup { group { "user_one": ensure => present, gid => 500, } group { "user_two": ensure => present, …
a coder
  • 7,530
  • 20
  • 84
  • 131
4
votes
2 answers

linux permission group

I am trying to setup my webserver so that one group will have access to the files. Apache and every user that needs to edit the files will be part of this group. So I've set all the files to have the group psacln. I've added psacln to my groups. But…
Tom Mead
3
votes
1 answer

Get list of Microsoft Azure AD group names using MSAL library in Angular 8

I am working on an Angular 8 application that is trying to retrieve list of all the Microsoft AD groups available to the logged in user. Previously, I was working on authenticating a user using MSAL library and was successfully able to get the…
1 2
3
22 23