Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Updates the groups the user belongs to.
Namespace: Microsoft.WindowsServerSolutions.Users
Assembly: UserObjectModel (in UserObjectModel.dll)
Syntax
public void UpdateUserContainerGroups(
string userName,
IList<Guid> groupsToAdd,
IList<Guid> groupsToRemove
)
public:
void UpdateUserContainerGroups(
String^ userName,
IList<Guid>^ groupsToAdd,
IList<Guid>^ groupsToRemove
)
Public Sub UpdateUserContainerGroups (
userName As String,
groupsToAdd As IList(Of Guid),
groupsToRemove As IList(Of Guid)
)
Parameters
userName
Type: System.StringThe name of the user.
groupsToAdd
Type: System.Collections.Generic.IList<Guid>Groups to add to the user's group container.
groupsToRemove
Type: System.Collections.Generic.IList<Guid>The groups to remove from the user's group container.
See Also
UserMgmtManager Class
Microsoft.WindowsServerSolutions.Users Namespace
Return to top