Conditions before executing a workflow

Kévin FAUSSADIER 81 Reputation points
2021-03-16T18:18:54.197+00:00

Hi all,

Is there a way to add a conditions before executing a workflow ?

Let me explain quickly... I have all my users in MIM portal and I have added an option for IT support to create "admin" accounts for users with a tickbox. Once the tickbox is ticked, the account is created by a WF. But, is there a way to check before creating this admin account that the admin account is not already created?

@Leo Erlandsson

Thank you,

Microsoft Security | Microsoft Identity Manager
0 comments No comments
{count} votes

Accepted answer
  1. Leo Erlandsson 1,661 Reputation points
    2021-03-17T09:54:50.907+00:00

    Hi,

    Use the WAL: Create Resource action.

    You can use either the Conflicting Resource Search Filter or Activity Execution Condition.

    https://github.com/Microsoft/MIMWAL/wiki/Create-Resource-Activity

    Br,
    Leo

    1 person found this answer helpful.
    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Leo Erlandsson 1,661 Reputation points
    2021-03-17T08:17:37.647+00:00

    Hi,

    Haha, tagged again!

    Yes. You can use e.g. MIMWAL MIMWAL

    Use the Conditional Execution Capability to determine if account should be created or not.

    Br,
    Leo

    0 comments No comments

  2. Kévin FAUSSADIER 81 Reputation points
    2021-03-17T09:32:04.027+00:00

    Hi Leo, :) Thanks for your reply, I have MIMWAL installed already, do you know if I miss the "Conditional Execution Capability" option ? ![78734-2021-03-17-10-31-01.png][1] [1]: /api/attachments/78734-2021-03-17-10-31-01.png?platform=QnA

    0 comments No comments

  3. Kévin FAUSSADIER 81 Reputation points
    2021-03-17T13:14:55.103+00:00

    Is this conflicting search seems OK to you ?

    /Person[AccountName = '"W"+[//TARGET/AccountName]']

    I need to search if the account name I want to create is not already created

    0 comments No comments

  4. Kévin FAUSSADIER 81 Reputation points
    2021-03-17T13:25:24.433+00:00

    I have my answer, what I wrote above is not working. But this one worked :
    /Person[AccountName = 'W[//TARGET/AccountName]']

    Thanks a lot !!

    0 comments No comments

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.