Questions tagged [usergroups]

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

343 questions
1
vote
1 answer

Powershell - Get User information from AD list

I'm a beginner in programming in general.. What I'm trying to do is to create a powershell script that will: Get information on each user on an Active Directory group. Inside each group there may be another group, so I would want it to get the…
kinkiman
  • 17
  • 6
1
vote
3 answers

How does one list users belonging to a group in OSX?

I have been googling this problem to no avail. I want to list just the users belonging to a particular group without extraneous data in osx terminal, I thought the dscl utility would be capable of doing this but so far I have been unable to craft…
Dark Star1
  • 6,986
  • 16
  • 73
  • 121
1
vote
1 answer

Specific group access to files/directories linux

Say I have normal 15 user groups and 1 admin group. I have a file directory /ReadingMaterial which has 15 text files inside of it. I want the admin group to have read/write permissions to the entire directory (all 15 files). I want the user groups…
Anan
  • 81
  • 8
1
vote
5 answers

unlocking the system preferences is not working

System Preferences is trying to unlock users & Groups preferences Unable to open System preferences for the my MacOs High Sierra. sudo commands helps to provided the access to unlock the usergroups?
kiran
  • 4,285
  • 7
  • 53
  • 98
1
vote
0 answers

c# | Is There any way to get the groups a certain user belongs without getting the UserName or even getting only a part of it?

As I wrote in the title I am looking for a way to get all the local groups a certain user belongs too without the username or only a part of it using c#, is there any way to do it? Already tried using The codes in this post, How to get the groups of…
Ran Firrer
  • 43
  • 5
1
vote
1 answer

User AD groups not returned when deployed to IIS

I want to authorize a page in C# web application. This page should only be accessed by a users in a particular AD group. I have the following code and it works perfectly when I run this in debug mode (IIS Express). But when I deploy it to my local…
RN92
  • 1,380
  • 1
  • 13
  • 32
1
vote
1 answer

bash script create users using csv

I'm trying to create different users from a csv file in bash. This my code so far: #create arrays usernames and password groups=(`cut -d: -f 1 "$filein"`) usernames=(`cut -d: -f 3 "$filein" | tr [A-Z] [a-z] |awk '{print substr($1.$2}'`) …
1
vote
1 answer

How do I programmatically create new groups with specific set of rights on XWiki?

I'm writing my own XWiki Authenticator (that extends XWikiAuthServiceImpl) and therein, I want to create few groups, each with different sets of rights. How do I do it programmatically? Example, XWiki.MyStandardGroup - view, edit, comment…
Nawaz
  • 353,942
  • 115
  • 666
  • 851
1
vote
0 answers

usermod -a -G group user not adding user to group but no error is seen

I need for a user2 to access user1 directory and files to run a program in user2 that cannot be ran by different users successfully. So I want to add user1 to the group user2 belongs to. I tried as root usermod -a -G group user1 but its not adding…
Dominique
  • 11
  • 2
1
vote
2 answers

Hide Create and Export All button but show Import button in Odoo13 tree view

By default Tree view in Odoo has Create, Import and Export All button showing on top. How do I hide them based on User groups? Also I should be able to hide Create button but without hiding Import button.
1
vote
1 answer

getgroups() on macOS is not returning all the supplementary groups, but instead just the primary group

'id' command does give me all the supplementary groups, but the following code is just returning the primary groups for which the use belongs: gid_size = getgroups(0, NULL); //1 is getting returned here grouplist = malloc(gid_size *…
1
vote
1 answer

Alfresco Sync Groups: APIs and CMIS

We are doing Alfresco (Version 6.1) Integration with an ERP and we are almost finished but we have one problem. We Sync sites/people/documents and groups from alfresco to our ERP (Odoo). We don't have any issues with syncing…
DevendraK
  • 121
  • 1
  • 4
1
vote
3 answers

VB.NET - How to see if Current User's Group Name matches a specified Group Name using Active Directory Roles and SID's

I'm trying to match up a specific group name and see if it exists for the currently logged in user using Active Directory roles. If the Group Name exists for the Current User, I want that group name to be displayed in a drop down list. Example: If…
Brian McCarthy
  • 4,658
  • 16
  • 49
  • 66
1
vote
1 answer

Receive all membership groups' SIDs that a user belongs to?

I'm using the below piece of code to retrieve the process owner's SID and everything is fine here but how can I possibly retrieve at least any (and at most every) membership SID that the process owner is a member of? PSID g_pSID; BOOL…
Ivan Silkin
  • 381
  • 1
  • 7
  • 15
1
vote
1 answer

Is there any way to list down the users in default groups in openshift?

I want to list down the users in default groups such as system:authenticated, system:authenticated:oauth, system:unauthenticated in openshift. I got this link to find out default groups and roles but helpless to list down user in these groups. So i…
sandhya
  • 11
  • 1
  • 3