# Assign Or Unassign License

### Description

Adds or removes a user to a dedicated license assignment group to control license allocation. The license group must match the configured naming convention.

### Location

User → General → Assign Or Unassign License

**Full Runbook name**

rjgit-user\_general\_assign-or-unassign-license

### Permissions

#### Application permissions

* **Type**: Microsoft Graph
  * User.Read.All
  * GroupMember.ReadWrite.All
  * Group.ReadWrite.All

### Parameters

#### UserName

User principal name of the target user.

| Property      | Value  |
| ------------- | ------ |
| Required      | true   |
| Default Value |        |
| Type          | String |

#### GroupID\_License

Object ID of the license assignment group.

| Property      | Value  |
| ------------- | ------ |
| Required      | true   |
| Default Value |        |
| Type          | String |

#### Remove

"Assign the license to the user" (final value: $false) or "Remove the license from the user" (final value: $true) can be selected as action to perform.

| Property      | Value   |
| ------------- | ------- |
| Required      | false   |
| Default Value | False   |
| Type          | Boolean |

[Back to Runbook Reference overview](https://docs.realmjoin.com/automation/runbooks/runbook-references)
