Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Retrieving AD policy from business group?

$
0
0

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.


Viewing all articles
Browse latest Browse all 175326

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>