Methods / Group, Role, and Rights |
Web Services
Removes a user or a group from a specified role.
public virtual void RemoveRoleMember(string RoleName, string Assignee, string AssigneeType, string ObjectID)
Name | Description |
---|---|
RoleName |
|
Assignee |
|
AssigneeType |
|
ObjectID |
|
None.
IWFAdminService svc = GetAdminService(); string RoleName = ...// for example, "Engineers" string Assignee = ...// for example, @"VIT\ct-002" try { svc.RemoveRoleMember(RoleName, Assignee, "User", null); } catch (Exception ex) { Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex)); }
3.2.0.4 and higher