I am trying to get the AD policy (specifically the distinguished name) from a business group and I'm hitting a road block. Sample code is below.
var subtenantId = System.getContext().getParameter("__asd_subtenantRef");
var cafeHost = Server.findAllForType("vCACCAFE:VCACHost")[0];
var businessGroups = vCACCAFEEntitiesFinder.getSubtenants(cafeHost);
for each (group in businessGroups) {
if (group.id == subtenantId) { var dn = vCACCAFESubtenantHelper.getADContainer(group); System.log(vCACCAFESubtenantHelper.getADContainer(group)); }
}
For some reason dn is null? I can get other properties form the business group but not the AD policy info?
My goal is either to get the AD policy name, which I can then lookup and get the distinguished name from the policy directly, or simply get the distinguished name directly from the blueprint. Is there a better way to go about this?
Thank you for reading.