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
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.
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
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.
Let me explore some existing workflow, It will help me in development.
Any pointers or tools , i should use please let me know.
-A