This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Create or Move Exchange Mailbox with Workflow

Hello,


we are using ActiveRoles Version 7.

We want to automate User creation with workflows, but i have problems with the Mailbox creation.

We want to minimize the Rules we are using, so my Test approach is on Policy and after this the Settings are applied to the new user depending of the OU where the user is created.

With Mailbox creation i have tested the following:
1. Workflow sets the attributes mailnickname and homeMDB; in a later Step edsaCreateMsEchangeMailbox --> not working with Error Message "external Mail Address is missing"

2. created a default Policy with automatic creation of the Mailbox in the selected Store, the Workflow sets edsahomeMDB and edsaMoveMailbox "True" --> Error edsahomeMDB is missing

3. created a default Policy with automatic creation of the Mailbox in the selected Store, the Workflow sets extensionAttribute8 with the DN of the correctStore; a second Workflow starts a script which reads the User DN, extensionAttribute8 and mailNickname and starts "Set-QADUser $user -Proxy -ObjectAttributes @{"edsaMoveMailbox"=$true;"edsaHomeMDB"=$strEDSAhomeMDB}" --> Error Access Denied"

When i start a powershell with the User of our ActiveRoles Server Service the command "Set-QADUser $user -Proxy -ObjectAttributes @{"edsaMoveMailbox"=$true;"edsaHomeMDB"=$strEDSAhomeMDB}" works fine.

Does someone has a solution or concept for this ?

Is there some way to delete a moverequest from exchange when it is finished ?


Regards,

Florian Ballangó

Parents
  • Hello Johnnyquest,


    you have right with your point "BEFORE it happens". Which Start Action do i need to use for the Workflow ?

    Actually available (User):

    • Any operation
    • Create
    • Modify properties
    • Move
    • Delete
    • Restore
    • Deprovision
    • Undo deprovision

    I see no option to start the workflow bevore User creation.

    My steps are the following:

    Create user with the "new User" Wizard and assigned policys for Username, Logonname, Mailboxselection and so on.
    When the Wizard is finished the Workflow with Option Create User is starting, but there the Mailbox is created yet.

    When i remove the Mailboxselection from the Policy and add it to the Workflow i receive the Message "external Mail Address is missing". Because of this Errormessage i create the Mailbox with the Policy and want to move it afterwards.

    Whenb you know a Solution for the "external Mail Address is missing", this is the better way.

Reply
  • Hello Johnnyquest,


    you have right with your point "BEFORE it happens". Which Start Action do i need to use for the Workflow ?

    Actually available (User):

    • Any operation
    • Create
    • Modify properties
    • Move
    • Delete
    • Restore
    • Deprovision
    • Undo deprovision

    I see no option to start the workflow bevore User creation.

    My steps are the following:

    Create user with the "new User" Wizard and assigned policys for Username, Logonname, Mailboxselection and so on.
    When the Wizard is finished the Workflow with Option Create User is starting, but there the Mailbox is created yet.

    When i remove the Mailboxselection from the Policy and add it to the Workflow i receive the Message "external Mail Address is missing". Because of this Errormessage i create the Mailbox with the Policy and want to move it afterwards.

    Whenb you know a Solution for the "external Mail Address is missing", this is the better way.

Children
No Data