Assign an IT policy to a group
To assign an IT policy to a group, you can use the
attachITPolicyToGroup() method.
Before you begin: Retrieve the following integers:
- itPolicyID integer for the ID of the IT policy that you want to assign to the group
- groupID integer for the ID of the group that you want to assign the IT policy to
-
Invoke attachITPolicyToGroup().
AttachITPolicyToGroupResult result = coreWebService.attachITPolicyToGroup(groupId,itpolicyId);
-
Check the result for errors and handle any errors.
if (result.getAttachITPolicyToGroupReturnStatus().getCode() != AttachITPolicyToGroupReturnStatusEnumType.SUCCESS)
{
// handle any errors
}
Was this information helpful? Send us your comments.