---
sourceDocument: Yokohama ServiceNow AI Platform Capabilities
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/servicenow-platform

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Remove User from Group AD activity

# Remove User from Group AD activity {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The Remove User from Group activity removes a user from a group in Windows Active
Directory.
To access this activity in the Workflow Editor, select the
Custom tab, and then navigate to Custom ActivitiesActive Directory.{#r_RemoveUserFromGroupADActivity__p_AccessADCustomActivities}

## Input variables

{#r_RemoveUserFromGroupADActivity__table_xr0_2wv_15__entry__2}

| Variable | Description |
|-|-|
| DomainController | IP address of the domain controller machine. |
| UserName | Name of the user to remove from the group. |
| GroupName | Name of the group from which this user is removed. |
[Table 1. Remove User from Group input variables]

{#r_RemoveUserFromGroupADActivity__table_xr0_2wv_15}

## Output variables

{#r_RemoveUserFromGroupADActivity__table_srw_jwv_68__entry__2}

| Variable | Description |
|-|-|
| result | Either success or failure. |
| errorMessage | The executionResult.errorMessages from the [Activity designer parsing sources](https://www.servicenow.com/docs/5fX1CXeRKshOet1fu0DglA#r_ActivityDesignerParsingSources "This table lists the parsing sources available with each execution template."). |
[Table 2. Remove User from Group output variables]

{#r_RemoveUserFromGroupADActivity__table_srw_jwv_68}

## Conditions

{#r_RemoveUserFromGroupADActivity__table_sas_swv_48__entry__2}

| Condition | Description |
|-|-|
| Success | User was successfully removed from the group. |
| Failure | An error occurred while attempting to remove the user from the group. Additional details may be available in the workflow log. |
[Table 3. Remove User from Group conditions]

{#r_RemoveUserFromGroupADActivity__table_sas_swv_48}

*[\>]: and then


