Add user to AD group

Vaishali 11
Tera Guru

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?

Vaishali11_0-1685343836107.png

 

1 REPLY 1

jaheerhattiwale
Mega Sage
Mega Sage

@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.

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023