import sailpoint.object.QueryOptions;
import sailpoint.object.Filter;
import sailpoint.object.Identity;
//get the workgroup
Identity workGroupName = context.getObjectByName(Identity.class,"DemoWorkGroup");
// get the identity
Identity identityName = context.getObjectByName(Identity.class,"Aaron.Nichols");
if(workGroupName!=null && identityName!=null ){
identityName.add(workGroupName);
context.saveObject(identityName);
context.commitTransaction();
}
import sailpoint.object.Filter;
import sailpoint.object.Identity;
//get the workgroup
Identity workGroupName = context.getObjectByName(Identity.class,"DemoWorkGroup");
// get the identity
Identity identityName = context.getObjectByName(Identity.class,"Aaron.Nichols");
if(workGroupName!=null && identityName!=null ){
identityName.add(workGroupName);
context.saveObject(identityName);
context.commitTransaction();
}
Comment below if you find this post helpful.
No comments:
Post a Comment