RuntimeServiceRemoveUsersFromGroup Method |
Namespace: Advantys.Workflow.Web.Services.Processes.Runtime
The method receives a list of users to associate to the group.
For parameters that support both a name and an id, the name will be ignored if an id is set.
Optional Parameters.
These parameters can be used in the query string or as parameters of the Headers object in the RuntimeService class instance. See example below.
GroupId (int) | Specifies the group id. Supercedes the group name. |
directoryId (int) | Specifies the directory id. Supercedes the directory name. |
directoryName (string) | Specifies the directory name. |
IgnoreMissingAssociations (bool) | Sets whether or not to return an error when an association (group) is missing from the target. Default = true. |
<Users> <User> <Username>Username1</Username> </User> <User> <Username>Username2</Username> </User> </Users>
RuntimeServiceWebService.RuntimeService myRuntimeService = new RuntimeServiceWebService.RuntimeService(); RuntimeServiceWebService.GroupHeader myGroupHeader = new RuntimeServiceWebService.GroupHeader(); myRuntimeService.GroupHeaderValue = myGroupHeader; myGroupHeader.IgnoreMissingAssociations = ignoreMissingAssociations; myRuntimeService.RemoveUsersFromGroup(groupName, usersDefinition);