---
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


---

# Remove User License Azure AD activity

# Remove User License 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 Remove User License activity revokes the specified Office 365 software license for
the named user.
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.").  
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_RemoveUserLicenseAzureADActivity__table_e3p_v2d_p5__entry__2}

| Variable | Description |
|-|-|
| user_id | The object ID (GUID) or the user principal name of the target user. An example of a user principal name is someuser@a830edad9050849NDA1.onmicrosoft.com. |
| sku_id | Subscription SKU ID associated with the tenant's enterprise agreement. |
[Tabelle : 1. Remove User License input variables]

{#r_RemoveUserLicenseAzureADActivity__table_e3p_v2d_p5}

## Output variables

{#r_RemoveUserLicenseAzureADActivity__table_fkc_t2d_p5__entry__2}

| 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. Remove User License output variables]

{#r_RemoveUserLicenseAzureADActivity__table_fkc_t2d_p5}

## Conditions

{#r_RemoveUserLicenseAzureADActivity__table_yrw_rdd_p5__entry__2}

| Condition | Description |
|-|-|
| Success | Activity removed an Office 365 license from the named user. |
| Failure | Activity failed to remove an Office 365 from a user, or the activity failed to connect to Azure AD. |
[Tabelle : 3. Remove User License conditions]

{#r_RemoveUserLicenseAzureADActivity__table_yrw_rdd_p5}

