import sailpoint.object.Identity;
import sailpoint.object.Identity.WorkgroupNotificationOption;
Identity identity = new Identity();
identity.setName("Mighty-Workgroup");
identity.setDisplayName("Mighty-Workgroup");
Identity workGroupOwner = context.getObjectByName(Identity.class, "spadmin");
identity.setOwner(workGroupOwner);
identity.setWorkgroup(true);
identity.setNotificationOption(WorkgroupNotificationOption.MembersOnly);
context.saveObject(identity);
context.commitTransaction();
context.decache(identity);
No comments:
Post a Comment