Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 219257

Re: Getting AD User attributes using plugin

$
0
0

I got a workaround for the attribute I initially wanted is:

 

System.log("aduser" + adUser);
var attribs = adUser.allAttributes;
System.log("========== All Attributes ===========");
for each (attrib in attribs){    if (attrib.name == "mail") {  System.log("attribute: "+attrib.name+ "("+adUser.getAttribute(attrib.name)+")");  }
}

 

So basically, instead of printing all the variables, I used the Inventory>AD>User>Variables to find the actual attribute I wanted and then filtered that one in the above code.

Thanks

B


Viewing all articles
Browse latest Browse all 219257

Trending Articles



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