# Assign Groups By Template Scheduled

### Description

This runbook adds users from a source group to one or more target groups. Target groups are provided via a template-driven string and can be resolved by group ID or display name.

### Location

Organization → General → Assign Groups By Template (Scheduled)

**Full Runbook name**

rjgit-org\_general\_assign-groups-by-template\_scheduled

### Permissions

#### Application permissions

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

### Parameters

#### SourceGroupId

Object ID of the source group containing users to process.

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

#### ExclusionGroupId

Optional object ID of a group whose users are excluded from processing.

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

#### GroupsTemplate

Template selector used by the portal to populate the GroupsString parameter.

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

#### GroupsString

Comma-separated list of target groups (IDs or display names depending on UseDisplaynames).

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

#### UseDisplaynames

If set to true, GroupsString contains display names; otherwise it contains object IDs.

| Property      | Value   |
| ------------- | ------- |
| Required      | false   |
| Default Value | True    |
| 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/assign-groups-by-template_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.
