This content has been marked as final. Show 2 replies
this can't be done using trusted recon. But write a separate scheduled task for this and call OIM11gR2 API which will create Organization based on given criteria. and call this scheduled task before trusted recon so that user will be reconciled against their corresponding organization.
call OrganizationManager.create(Organization org) method for creating organization.
create Organization object as Organization org=new Organization();
then set all the required parameter along with Parent Organization name
org.setAttribute(java.lang.String name, java.lang.Object value)
ex: if orgname=ABC and parent org=XYZ
org.setAttribute( OrganizationManagerConstants.AttributeName.ORG_PARENT_NAME ,"XYZ");
you can set OrganizationManagerConstants.AttributeName.ORG_TYPE("Company") as well