System.DirectoryServices.Protocol add/remove user from group
-
29-10-2019 - |
Question
I want to Add remove a user from a group in System.DirectoryServices.Protocol namespace.
I have the samples mentioned here :
But can't find an exampel fo how to add and remove a user from a group using S.DS.P.
Does anyone know of any samples for this operation?
Thanks,
Cal-
Solution
You'd just want to send a ModifyRequest
on the member
attribute with a DirectoryAttributeOperation.Add
. The value you should pass is the DN of the user you want to add to the group
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow