Questions tagged [account-management]
116 questions
0
votes
1 answer
Using System.DirectoryServices.AccountManagement, Making a group the primary group
I'm trying to add a user, add them to a group, and then make that group the primary group for the user. I've been using System.DirectoryServices.AccountManagement for all the AD access.
I've added the user using:
principalContext = new…

CFo
- 109
- 2
- 13
0
votes
1 answer
Who is currently logged into a pc?
Is it possible, using System.DirectoryServices.AccountManagement, to find who the user is who is currently logged into a specific pc?
Using the PrincipalSearcher it is easy to find all the computers on a domain, and even when they were last logged…

MightyAtom
- 331
- 4
- 24
0
votes
2 answers
Override groupprincipal.members.add
Anyone knows if it is possible to override or extend the Members.Add method on a System.DirectoryServices.AccountManagement.GroupPrincipal object?
I would like to do something like this
public new void Add(Principal principal)
{
…

cps001
- 1
- 1
0
votes
0 answers
Is Active Directory suitable for these requirements?
I'm about to build a new account management system for my company. The users is external customers accessing some of our web applications. Some users are internal operators accessing the same web applications, but with certain authority. The…

Filip
- 327
- 1
- 8
- 18
0
votes
2 answers
Is there a meteor.js library available for managing user accounts?
Is there a meteor.js library available for managing user accounts?
I'd like to have users register, have access to unique user IDs to limit the number of times a single user can do something, and also have different tiers of users to control access.…

Matt
- 1,996
- 5
- 18
- 24
0
votes
1 answer
Adding an AD User to a Machine Local group via AccountManagement
I wanted to implement adding an AD user to a local machine group via User and GroupPrincipals, and I thought it would work nice and easy. Unfortunately, I continue to get a General Access Denied error. It's possible I just don't understand the…

J_D
- 308
- 3
- 16
0
votes
1 answer
Is it possible find users from trusted domain by using UserPrincipal.FindByIdentity
We have two domains with one-way trust.
Domain EXT that has External one-way trust configured to domain INT. So I would like to connect to EXT domain by using EXT domain user credentials and search for users that are in INT domain.
The question -…

AlexNI
- 1
- 2
0
votes
1 answer
DirectoryServices.AccountManagement.UserPrincipal.SetPassword("BLahBlahBlah")
Can someone help me out with this? I have this code running fine on xp 32 bit, but on xp 64 bit "user.SetPassword" (not .Save()) throws an exception:
"Exception has been thrown by the target of an invocation."
{"Access Denied (Exception from…

Daro
- 1,990
- 2
- 16
- 22
0
votes
2 answers
Getting Exception trying to delete a Local User Group using Directory Services Account Management in C#
I'm trying to programmatically delete a local user group. I'm using the following code which I've cobbled together from various examples online. From everything I've read, it should work. But the Delete line throws an exception.
PrincipalContext…

Marcel Lamothe
- 12,452
- 9
- 34
- 44
0
votes
2 answers
How to set a base class internal field
Im extending a class (DirectoryServices.AccountManagement.Principal) and I need to assign a value to a field in the base class but its marked internal. Can I use reflection to set the value? How would that be done?
I found…

Exist
- 1,941
- 2
- 17
- 14
-1
votes
2 answers
Remove Azure DevOps Account when remove from company AD
Is there a automatic(script or similar) way of removing account subscription from Azure DevOps when account removed from company AD. Today this is a manual effort in our company and not very effective.

user3440473
- 23
- 5