create AD user and create AD Group using System Center Orchestrator

SSE@TUE 120 Reputation points
2025-06-11T12:24:46.7333333+00:00

Hi,

I have created a runbook on my System Center Orchestrator as following:

  1. create AD User (it is working)
  2. Enable AD User (it is working)
  3. Enable Mailbox (it is working)
  4. ADD the new created AD user to existing group (it is working)
  5. Create a new AD group (it is working)
  6. ADD the new created AD user (step 1) to the new created AD Group (step 5) ( does not work)

What do I wrong?

here my runbook

runbook4

best regards

Nick

System Center Orchestrator
System Center Orchestrator
A family of System Center products that provide an automation platform for orchestrating and integrating both Microsoft and non-Microsoft IT tools.
267 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 123.4K Reputation points MVP Volunteer Moderator
    2025-06-18T13:04:46.7233333+00:00

    Hi @SSE@TUE ,

    the correct order of the activities in your runbook shown in the screenshot should be:

    Create User - link -> Enable User - link -> Create Group1 - link -> Add user to Group1

    From Enable User - link -> Create Group2 - link -> Add user to Group2

    This way the user will be created and enabled

    After the user is enabled the Group1 and Group2 can be created parallel and the user can be added to the groups after the groups are created

    Second option could be:

    Create User - link -> Enable User

    From Create User - link -> Create Group1 - link -> Add user to Group1

    From Create User - link -> Create Group2 - link -> Add user to Group2

    Both options will work.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Andreas Baumgarten 123.4K Reputation points MVP Volunteer Moderator
    2025-06-17T14:30:26.9966667+00:00

    Hi @SSE@TUE ,

    how are the Add User to Group activities configured?

    A screenshot of the details might be helpful.

    Do you get any error messages when the activities are executed?

    Basicially you need to configure the Distinguished Name of the AD user and the AD group to add the user to the group. For instance:

    CN=Peter Pan,OU=Sales,DC=Fabrikam,DC=COM

    CN=Group1,OU=Sales,DC=Fabrikam,DC=COM


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten


  2. Andreas Baumgarten 123.4K Reputation points MVP Volunteer Moderator
    2025-06-18T08:00:27.1666667+00:00

    Hi @SSE@TUE ,

    to add the created user to the AD group you need the Distinguished Name of the group.

    Easiest way to get this done is to use a Get Group activity before with a filter on the SamAccount Name (SE-RPAD in your example). Link this activity before the Add User to Group activity and use the DN of the published data of the Get Group activity.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.