# Add Devices Of Users To Group Scheduled

### Description

This runbook reads accounts from a specified users group and adds their devices to a specified device group. It can filter devices by operating system and keeps the target group in sync.

### Location

Organization → General → Add Devices Of Users To Group (Scheduled)

**Full Runbook name**

rjgit-org\_general\_add-devices-of-users-to-group\_scheduled

### Permissions

#### Application permissions

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

### Parameters

#### UserGroup

Name or object ID of the users group, to which the target users belong.

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

#### DeviceGroup

Name or object ID of the device group, to which the devices should be added.

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

#### IncludeWindowsDevice

If set to true, includes Windows devices in the target device group.

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

#### IncludeMacOSDevice

If set to true, includes macOS devices in the target device group.

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

#### IncludeLinuxDevice

If set to true, includes Linux devices in the target device group.

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

#### IncludeAndroidDevice

If set to true, includes Android devices in the target device group.

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

#### IncludeIOSDevice

If set to true, includes iOS devices in the target device group.

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

#### IncludeIPadOSDevice

If set to true, includes iPadOS devices.

| 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/org/general/add-devices-of-users-to-group_scheduled.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.
