Skip to main content
Version: Angophra

Configuring Actions

In this article, you can find information on how to configure actions in Apporetum. Actions are defined in the Actions tab of a transition and determine the automated tasks Apporetum performs when an account moves from one state to another.

Actions panel with Add Action button The Actions panel with no actions added.

tip

Before configuring actions, ensure you have created a transition and completed the General tab. See Configuring the State Model for guidance on creating transitions.


How Actions Work

Each transition in Apporetum can have one or more actions associated with it. When an account satisfies the trigger rules for a transition and moves to a new state, Apporetum executes all configured actions for that transition in the defined sequence.

If multiple actions are present, you can reorder them to control the sequence in which they run.


Adding an Action

  1. Select Add Transition on a state, or open an existing transition.
  2. Complete the General and Triggers tabs. See Configuring the State Model and Configuring Transition Rules for details.
  3. Select the Actions tab.
  4. Select Add Action.
  5. Select the action type from the dropdown list.
  6. Configure the settings for the selected action type.
  7. Repeat steps 4–6 to add additional actions.
  8. Drag actions into the desired sequence using the drag handle on each row.
  9. Select Save Changes.

The Actions panel showing a list of configured actions, an Add Action button and Reorder Actions button. The Actions panel showing a list of configured actions, an Add Action button and Reorder Actions button.


Action Types

Apporetum provides seven action types for use in state model transitions.

Quick reference

Action TypeWhat it doesTypical use
Publish EventPublishes an event to Azure Event GridTrigger downstream workflows
Manage EntitlementsAdds or removes application role assignmentsGrant or revoke access during lifecycle transitions
Harvest EntitlementsSnapshots and removes current entitlementsOn Leave — preserve access for later restoration
Restore EntitlementRestores entitlements from the most recent harvestReturn from Leave — reinstate previously held access
Send Email NotificationSends an email notification via a mail templateNotify managers on termination, notify users on activation
Update Account StateEnables, disables, or deletes the Entra ID accountDisable account on dormancy, delete on termination
Move Account OUMoves the account to a specified Organisational UnitOU-governed Group Policy environments

Publish Event

When the account transitions to the new state, Apporetum can publish an event to the Azure Event Grid. Use this action to trigger downstream workflows or integrations across your ecosystem. For example, notifying a service management system, triggering an Azure Logic App, or integrating with external HR or access governance platforms.

The action requires an Action Name and an Event Type. The event type uses a dot notation to provide a path that can be filtered by subscriber filters on the Event Grid.

The event action will publish the json representation of the event data to the Event Grid. The action includes a drop down menu {X} to provide a short cut to all the attributes (HR, Identity, Account) that can be injected into the payload.

Event Action.


Manage Entitlements

When the account transitions to the new state, the state model can add or remove the account from one or more application roles or packages.

Use this action to automatically grant or revoke access as part of a lifecycle transition, such as:

  • Provisioning access packages during on-boarding (Active state entry)
  • Revoking application roles on termination

Configure the action by selecting the application roles to add or remove. Multiple roles can be managed within a single action.

Manage Entitlement Action.


Harvest Entitlements

When the account transitions to the new state, the transition can record a snapshot of the account's current entitlements and then remove them. The harvested entitlements are retained so they can be restored later if required.

Harvest Entitlement Action.

Use this action in conjunction with Restore Entitlement for scenarios such as returning from long service or parental leave.

info

Harvest stores only the most recent snapshot. If an account is harvested more than once before a restore, only the most recent harvest will be available for restoration.


Restore Entitlement

When the account transitions to the new state, Apporetum restores the account's entitlements to the state captured during the most recent Harvest Entitlements action.

Use this action on the transition that returns an account from leave or dormancy to an active state.

Restore Entitlement Action.


Send Email Notification

When the account transitions to the new state, Apporetum sends an email notification. The notification can be sent to:

Recipient optionDescription
Primary account holderThe identity whose account is transitioning
ManagerThe manager of the transitioning identity
Account itselfThe email address of the account being transitioned
Specified email addressA fixed email address — useful for team inboxes or administrators

Notification Action.

tip

Email notifications are sent using mail templates. Refer to Configure Email Notifications in the Learn documentation for guidance on creating and managing mail templates.


Update Account State

When the account transitions to the new state, Apporetum updates the account's status in Microsoft Entra ID.

OptionEffect in Entra ID
EnableSets the account to enabled — the identity can sign in
DisableSets the account to disabled — the identity cannot sign in
DeletePermanently removes the account from Entra ID

Update Account Action.

warning

The Delete option is irreversible. Once an account is deleted from Entra ID it cannot be recovered through Apporetum. Ensure your state model is thoroughly validated with a simulation before publishing any transition that includes a Delete account action.


Move Account OU

When the account transitions to the new state, Apporetum moves the account to a specified Organisational Unit (OU).

Use this action in environments where OU membership is used to govern Group Policy application or other directory-based controls — for example, moving an account to a restricted OU on dormancy to apply tighter policies.

Move OU Action.


Action Sequencing

When multiple actions are configured on a transition, Apporetum executes them in the order shown in the Actions tab. The sequence matters because some actions depend on the outcome of others.

The Actions panel showing a list of configured actions, an Add Action button and Reorder Actions button. The Actions panel showing a list of configured actions, an Add Action button and Reorder Actions button.

ScenarioRecommended action order
On-boardingUpdate Account State (Enable) → Manage Entitlements (Add) → Send Email Notification
Going on leaveHarvest Entitlements → Update Account State (Disable) → Send Email Notification (manager)
Returning from leaveUpdate Account State (Enable) → Restore Entitlement → Send Email Notification
TerminationHarvest Entitlements → Update Account State (Disable) → Send Email Notification → Publish Event