There's a problem with this line:
defaultOuId = 1;
There's no guarantee that the root of the OU tree has ID = 1, and I know of at least one production Evergreen system where that's not the case. Importing OrgService and getting the default from org.root() would resolve this.
There's a problem with this line:
defaultOuId = 1;
There's no guarantee that the root of the OU tree has ID = 1, and I know of at least one production Evergreen system where that's not the case. Importing OrgService and getting the default from org.root() would resolve this.