A PowerShell web service can be used to assist the user when selecting AD group by searching the Active Directory.
Prerequisites:
The workflow Add user to group is used for this example.
NOTE: PowerShell web services can be connected to parameters on Activity, Workflow and Service level.
Create PowerShell Script
Write a PowerShell script
Example:
function MyFunction {
param($search)
Import-Module APCommon
FindADObject -adObject $search -filterTypes Group -includeWildcards $true
}
Create a PowerShell web service
-
Select PowerShell web service from Administrator menu.
-
Select Add web service.
-
Name the web service Get AD Group
-
Save.
The PowerShell web service has been created.
Attach a PowerShell web service to a Parameter in a workflow
-
Select Workflow admin from the administer menu.
-
Select and expand the workflow Add user to group
-
Select and expland the activity adduser
-
Select and expand the parameter Group.
-
Select the Value Population tab.
-
Select Autocomplete as the kind of input field to use.
-
Select Get AD Group from the PowerShell web service dropdown option.
-
Enter {0} as the parameterName. This represents the input from the user.
-
Enter DisplayName as the Display attribute. This is name that user will see at Checkout.
-
Enter SamAccoountName as the Value attribute. This is the value that is used by the activity.
-
Save All changes.
The PowerShell web service is now connected to the parameter in the workflow.
Test that the parameter auto-populates correctly
-
Find and Select the service from the Service Catelog
-
Add the service to the cart.
-
Go to Checkout.
-
Begin filling in the name of an AD group. The field pre-populates.
-
Select Submit.
-
Select Request Monitor from the Administer menu.
-
Verify the request is processed as expected.
Next: Snow Automation Platform - How to update a parameter value using an activity.
Related Articles
Snow Automation Platform: How to pre-populate a parameter using a PowerShell webservice 8Number of Views Snow Automation Platform - List of use cases 12Number of Views My Services in Snow Automation Platform 12Number of Views Discussion & Demo: What's New in Snow Automation Platform 3.10.0 9Number of Views How to pre-populate a parameter value on checkout 9Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago