VMware Cloud Community
john23
Commander
Commander
Jump to solution

VCO workflow :For listing users and groups

Hi,

I am new to VCO, have created some basic workflow. Is it possible to create workflow to fetch groups, users of groups from domain using VCO.

-A

Thanks -A Read my blogs: www.openwriteup.com
0 Kudos
1 Solution

Accepted Solutions
Burke-
VMware Employee
VMware Employee
Jump to solution

Assuming an input variable named group (AD:UserGroup), the following will log the members of the group:

var members = group.userMembers;

for each (member in members){

System.debug("User: " + member.accountName);

}

In that loop above, each "member" in the loop is AD:User object.

Get familiar with the API Explorer (Available in the left pane when editing the script of any workflow, also from the main Tools menu: Tools -> API Explorer. The API Explorer will show you most of the properties and methods for the object types that Orchestrator knows about.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter

View solution in original post

0 Kudos
3 Replies
schepp
Leadership
Leadership
Jump to solution

Hi,

there are Actions

getUserFromContainer

getUsergroupFromContainer

You can use those to get the AD object and work with it, like reading their attributes, etc.

I'm not sure how to list all users though.

Tim

Burke-
VMware Employee
VMware Employee
Jump to solution

Assuming an input variable named group (AD:UserGroup), the following will log the members of the group:

var members = group.userMembers;

for each (member in members){

System.debug("User: " + member.accountName);

}

In that loop above, each "member" in the loop is AD:User object.

Get familiar with the API Explorer (Available in the left pane when editing the script of any workflow, also from the main Tools menu: Tools -> API Explorer. The API Explorer will show you most of the properties and methods for the object types that Orchestrator knows about.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
0 Kudos
john23
Commander
Commander
Jump to solution

Let me explore some existing workflow, It will help me in development.

Any  pointers or tools , i should use please let me know.

-A

Thanks -A Read my blogs: www.openwriteup.com
0 Kudos