Quantcast
Viewing all articles
Browse latest Browse all 6251

Email of Logged in User

Hi,

I'm trying to get the email address of logged in user in vRO. From the community search I found the discusstion below.

Getting AD User attributes using plugin

I try to run the script but I got an error message. I try to modify it to see were I get stuck. I just run the script below with output name  actionResult and type Array/AD:User. Script did not failed but value was empty, so it tells me that this could not find any user. What would be the reason for this?

 

id = Server.getCurrentLdapUser().displayName;

actionResult = ActiveDirectory.searchExactMatch("User", id);

 

If I only run "id = Server.getCurrentLdapUser().displayName;" returns correct value. I also validate that I can get an attribute of an AD user if I select the AD user as an input.

 

Thanks,

Haluk


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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