Questions tagged [group-membership]
52 questions
13
votes
2 answers
Check active directory group membership recursively
So I have a question regarding recursive groups in active directory. I have a little method that checks if a user id is in a group or not. Works great. Found out today that it doesn't check recursive group membership and I'm not too sure how (or if)…

Seril
- 499
- 4
- 9
- 22
4
votes
1 answer
How to create Group Membership in TFS?
I want to create a group membership with below Template for created team project (not for new one):
…

A-Dastani
- 1,030
- 1
- 9
- 20
4
votes
1 answer
Enumeration of nested AD user groups using C#
I've written some code that gets all users of groups and nested groups. I also wanted to make sure that looping did not happen if the group membership caused a loop by having the first group a member of the last group.
The code I wrote works OK but…

RickBowden
- 189
- 2
- 15
4
votes
1 answer
Microsoft Graph - getting a specific user and his AD group memberships using the Graph SDK code base
Dipping my toes into using the Microsoft Graph API to handle finding data in our MS cloud - and I'm stuck. There's so much documentation - but never the right one....
I'm trying to use the C# Graphi client SDK, and what I'm trying to do is read a…

marc_s
- 732,580
- 175
- 1,330
- 1,459
3
votes
1 answer
Check if currently logged on user is has administrator rights
imagine there is a Powershell script running under the SYSTEM account on a Windows 10 machine and checks which domain user is currently logged on. No big deal.
Now: I want to check if this logged on user has administrator rights on this machine.…

Fabster
- 133
- 1
- 5
3
votes
1 answer
how can I add a contact to a group in google contacts api v3
I am trying to add a contact to a group in google contacts. When I try it in Google's "OAuth 2.0 playground" it works, but from my web-application, with exactly the same headers, method of posting and body, I get "error 400: bad request".
This is my…

user1598020
- 39
- 5
3
votes
1 answer
Facebook API for retrieving Group membership requests
I am looking for an API to call facebook to get List of Group membership request.
Currently I am using following Graph API with OAuth :…

Binumon
- 51
- 4
2
votes
1 answer
Fastest way to remove all users from an Azure AD group with PowerShell
What is the fastest way to remove all users from an Azure AD group in PowerShell?
I am currently using
$deleteThem = Get-MsolGroupMember -GroupObjectId $groupId -All
foreach ($user in $deleteThem) {
Remove-MsolGroupMember -GroupObjectId…

Vitamin X
- 21
- 1
- 2
2
votes
1 answer
How to setup TeamCity with LDAP group membership synchronization
This is a short howto to get you going with your LDAP setup for TeamCity.
I personally struggled for quite a bit, before I managed to get the synchronisation to run. The default config files has a lot of settings and text, which may be more…

Harald S. Hanssen
- 364
- 9
- 23
2
votes
1 answer
Compare today's date against information from a CSV. If matching, execute command
I've got a script that asks for a Username and DateRemove (MM/DD/YYYY). This input is exported to a config.CSV file with the -Append function and the CSV format is Username,DateAdd,DateRemove.
I'm wanting to create a second PS file to run as a…

mrn3ff
- 25
- 3
2
votes
1 answer
List local group members
I am trying to build a collection of all local groups and their respected members, however the challenge I am having with the listed code bellow is that "Administrators" group members is empty, all other groups on the server returns their members…

Robert The Architect
- 89
- 3
2
votes
1 answer
Add users from another domain to AD group
I need to add all users from one AD group to another AD group. Both groups are in the same domain, though the users are from another domain in the forest.
Domain "LPC": $Source_Group and $Destination_Group
Domain "forestx": Users
Here one example…

lpc-
- 51
- 1
- 5
2
votes
1 answer
Delete group membership in stormpath 0.10 using sdk
I want to delete a group membership without deleting the group or account. I don't have any delete method in stormpath's sdk for node.js.
I am using 0.10.1 version of stormapath.
'use strict';
var utils = require('../utils');
var InstanceResource =…

Twix
- 392
- 1
- 12
- 38
2
votes
2 answers
REST API - Changing group membership
There is /group/1 and /group/2, and /item/42 is a member of /group/1. I would like to remove /item/42 from /group/1 and put it into /group/2. My current solution is this:
GET /group/1/item/42 => Get the item from the first group
POST …

kol
- 27,881
- 12
- 83
- 120
2
votes
2 answers
android ContactsContract.CommonDataKinds.GroupMembership and ICS
I need to find out if a particular contact is a member of a given group. I have been working with the code below and have proved that it works using a handset running Gingerbread. However I have been trying to run it on my HTC One S running…

Darnst
- 91
- 1
- 7