How to add user to ad group through workflow

spandana kalla
Tera Contributor

Hello Community,

How to add user to AD group through workflow. My actual requirement is a task will be created to one particular DL group. If once tasks gets closed complete, the user should get added to AD group. I have created that task which was mentioned in 1st point. Can anyone please say how to add user to ad group. Please help me with this .

@Ankur Bawiskar 

Requirement :

  1. Once the business stakeholder approves a task needs to be created for the security team to assign the correct role permissions. The description for the task should read. “Please assign the user to the indicated role.”
  2. After this task is closed complete, the user should be added to AD group.

 

10 REPLIES 10

Is the 'sysid' here from the AD group?  I'm assuming yes, since the group doesn't exist in ServiceNow?

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

If you have orchestration activity pack then you can use workflow activity for this

Add User to Group AD activity

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello ankur,

Do we need to give log message activity after giving run script of adding user to ad group.

@Ankur Bawiskar 

regards,

Hi,

that activity has by default success or failure as Output variables which tells you whether it's success or not

Based on success or failure you can decide what needs to be done next

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@spandana kalla 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader