Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

Change AD Password only from allowed User in the OU and underOU (recursive)

$
0
0

Hello,

 

i try to make a asd service that allow bg admin to change to user pw in AD from the user in their own OUs

 

structure:

- OU1

-USER1

     - UOU1

          -USER2

     - UOU2

          -USER3

- OU2

     - USER4

- OU3

     -USER5

 

"the ou1 bg admin should only be able to change the password from user1,2,3 not from 4 and 5."

 

the workflow to change an user ad password is working.

 

my problem the "presentation" in vcac.

the recurse thing is missing i vcac.

 

i try to solve my problem with a presentation action (sry i dont know the excact word), but so dont work as i expect.

I want to give only the allowed user back to vcac.

 

attrOUs = ActiveDirectory.searchRecursively("OrganizationalUnit","TUDO");

for each (ou in attrOUs){

    for each (attrUser in ou.users)

    {

        var username = attrUser.getAttribute("userPrincipalName")

        System.log(username);

     **

 

    }

}

at ** i try to push the user to an Array/AD:User but this dont work.

 

i hope somebody understand my problem.

 

Greetz

 

Marc


Viewing all articles
Browse latest Browse all 9859

Trending Articles



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