Methods / Group, Role, and Rights |
Web Services
Adds a user as a member of a group.
public virtual WFGroupMember AddGroupMember(string GroupName, string UserName, string Description, string ClientData, bool Enabled)
Name | Description |
---|---|
GroupName |
|
UserName |
|
Description |
|
ClientData |
|
Enabled |
|
WFGroupMember object that contains the data for the new group member.
IWFAdminService svc = GetAdminService(); string GroupName = ...; string Description = ...; string UserName = @"[Domain Name]\[Account Name]", // Group Lead User Name string ClientData = null; bool Enabled = true; try { WFGroup group = svc.AddGroupMember(GroupName, UserName, Description, ClientData, Enabled); } catch( Exception ex ) { Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex)); }
3.2.0.4 and higher