Add User To Groups
Add user to group(s).
Introduction
Section titled “Introduction”Requires an EntraID module.
By default, the valve runs once for every current item in the pipe context. Set execution_mode to "once" to add the configured user to the configured groups only once for the whole flow.
Configuration
Section titled “Configuration”| Name | Description | Default value | Mandatory | Expanded |
|---|---|---|---|---|
namespace | Bind to EntraID module. | "default" | ||
user_id | User id. | |||
group_identifier | JsonArray with group objects. | |||
execution_mode | Controls how the valve iterates. "per_item" runs once for each current item in the pipe context. "once" runs a single group membership operation for the whole flow, even if multiple items already exist. | "per_item" | ||
use_beta_api | Graph API beta endpoint. | false |
{ "name": "EntraIDAddUserToGroups", "config": { "namespace": "entra01", "user_id": "${request.selected_entra_id}", "group_identifier": "@json:${request.entra_pending_add.all}", "execution_mode": "once" }}Use "execution_mode": "per_item" when user_id or group_identifier is based on ${item...} and you want one membership operation per input item.
Use "execution_mode": "once" when both values come from request data, globals, or another non-item source, and you want exactly one membership operation for the valve.
Example pipe data
Section titled “Example pipe data” "selected_entra_id" : "e1e317a2-d76d-4ecd-8d6b-ab6c0a08f8c7", "entra_pending_add" : [ { "id" : "fb42d4ae-c1c8-4420-b37c-79aa011bfca0", "displayName" : "Salesforce" }, { "id" : "727c22dd-f8d3-4a6d-ba70-c7c2b24ab5ce", "displayName" : "LoA 1" } ],