Add user to AD group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023 12:04 AM
I have one requirement where after the manager approval is done, the user id selected on order form should be added to AD group and the request should be closed.
The mail id for the AD group is provided, but it is not available in the developer instance. In our instance we don't have the Custom tab in the workflow to add the custom activity. Below is the screenshot of the workflow, I have created till now.
How to achieve the next steps?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023 12:29 AM
@Vaishali 11 You should use the Mid Server connected with AD.
The steps should be
1. Mid server should be connected with AD
2. Create a script file (powershell script)
Go to Mid Server > Script files
Add your powershell script there
3. Use SncProbe api to, create ecc queue
4. the ecc queue will contain the script file you created
5. the mid server will then execute it on AD
With these points please do some research.
Ref doc: https://www.servicenow.com/community/developer-forum/scripting-probes-and-sensor/m-p/1869496
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023