Active Directory Admin icon

Active Directory Admin

Perform administrative operations on Active Directory via LDAP/LDAPS

Group → Remove Member

AI-generated

Summary

Remove a specified user from a specified Active Directory group, optionally skipping the operation if the user is not currently a member.

Inputs

  • User DN (required) — Full distinguished name of the user to be removed from the group (e.g., 'CN=John Doe,OU=Users,DC=example,DC=local').
  • Group DN (required) — Distinguished name of the group from which the user will be removed (e.g., 'CN=IT Staff,OU=Groups,DC=example,DC=local').
  • Skip if Not Member — If true (default), the operation will not fail if the user is not a member of the group; it will skip removal in that case.
  • Continue on Error — If true, continues processing multiple input items even if removal fails on one item.

Output shape

An array of JSON objects, one per input item, each indicating success and details about the removal operation.

Each output item contains a 'json' object with keys such as 'success', 'operation' ('removeGroupMember'), 'userDn', 'groupDn', and flags like 'removed', 'notMember', or 'skipped' depending on the scenario. Errors are thrown unless 'Continue on Error' is set to true.

Examples

Example 1: Remove a user from an AD group, skipping if user is not a member

Set 'User DN' to the full distinguished name of the user, 'Group DN' to the target group, leave 'Skip if Not Member' as true (default). The node will remove the user if they are a member, skip if not, and output the result indicating which action was taken.

Discussion