---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Add User to Group Azure AD activity

# Add User to Group Azure AD activity {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

The Add User to Group activity adds a user to an existing security group in Azure
Active Directory.
To access this activity in the Workflow Editor, select the
Custom tab, and then navigate to Custom ActivitiesAzure AD. This activity was built with the [REST web service activity template](https://servicenow-prod.fluidtopics.net/wCuNCscqoAb4VkDEqCL61w#t_CreateARESTWebServiceActivity "Use this procedure to create a custom REST web service Orchestration activity.").{#r_AddUserToGroupAzureADActivity__p_AzureADAccess}  
Wichtig:  
The REST message used for this activity must be configured to use [OAuth 2.0](https://www.servicenow.com/docs/access?context=c_OAuthApplications&version=australia&pubname=australia-platform-security&ft:locale=en-US).

## Input variables

{#r_AddUserToGroupAzureADActivity__table_hyv_hjx_45__entry__2}{#r_AddUserToGroupAzureADActivity__e_userID}{#r_AddUserToGroupAzureADActivity__e_groupID}

| Variable | Description |
|-|-|
| user_id | Object ID (GUID) of the member to be added. |
| group_id | Object ID (GUID) of the target group. |
[Tabelle : 1. Add User to Group input variables]

{#r_AddUserToGroupAzureADActivity__table_hyv_hjx_45}

## Output variables

{#r_AddUserToGroupAzureADActivity__table_dbl_mjx_45__entry__2}{#r_AddUserToGroupAzureADActivity__e_errorMessage}{#r_AddUserToGroupAzureADActivity__e_OutputBody}{#r_AddUserToGroupAzureADActivity__e_OutputStatusCode}

| Variable | Description |
|-|-|
| error | Returns the error string from the REST message. If there are no errors, this variable returns a null value. |
| body | Contains a string value representing the output from the REST message. |
| status_code | Contains the status code returned from the Web service. |
[Tabelle : 2. Add User to Group output variables]

{#r_AddUserToGroupAzureADActivity__table_dbl_mjx_45}

## Conditions

{#r_AddUserToGroupAzureADActivity__table_vsw_pjx_45__entry__2}

| Condition | Description |
|-|-|
| Success | Activity successfully added the object ID to the security group. |
| Failure | Activity failed to update the group's membership, or the activity failed to connect to Azure AD. |
[Tabelle : 3. Add User to Group conditions]

{#r_AddUserToGroupAzureADActivity__table_vsw_pjx_45}

