# Unassign Windows365

### Description

Removes Windows 365 assignments for a user and deprovisions the associated Cloud PC. Optionally ends the grace period immediately to trigger faster removal.

### Location

User → General → Unassign Windows365

**Full Runbook name**

rjgit-user\_general\_unassign-windows365

### Permissions

#### Application permissions

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

### Parameters

#### UserName

User principal name of the target user.

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

#### licWin365GroupName

Display name of the Windows 365 license group or Frontline provisioning policy to remove.

| Property      | Value                                             |
| ------------- | ------------------------------------------------- |
| Required      | false                                             |
| Default Value | lic - Windows 365 Enterprise - 2 vCPU 4 GB 128 GB |
| Type          | String                                            |

#### cfgProvisioningGroupPrefix

Prefix used to detect provisioning-related configuration groups.

| Property      | Value                              |
| ------------- | ---------------------------------- |
| Required      | false                              |
| Default Value | cfg - Windows 365 - Provisioning - |
| Type          | String                             |

#### cfgUserSettingsGroupPrefix

Prefix used to detect user-settings-related configuration groups.

| Property      | Value                               |
| ------------- | ----------------------------------- |
| Required      | false                               |
| Default Value | cfg - Windows 365 - User Settings - |
| Type          | String                              |

#### licWin365GroupPrefix

Prefix used to detect Windows 365 license groups.

| Property      | Value                          |
| ------------- | ------------------------------ |
| Required      | false                          |
| Default Value | lic - Windows 365 Enterprise - |
| Type          | String                         |

#### skipGracePeriod

If set to true, ends the Cloud PC grace period immediately.

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

#### KeepUserSettingsAndProvisioningGroups

If set to true, does not remove related provisioning and user settings groups.

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

[Back to Runbook Reference overview](/automation/runbooks/runbook-references.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.realmjoin.com/automation/runbooks/runbook-references/user/general/unassign-windows365.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
