Add to User Collection activity
reference brazil Updated Sep 10, 2026 1 min read r_AddToUserCollectionActivity.md
The Add to User Collection activity adds a user to a Microsoft System Center Configuration Manager (SCCM) user collection.
The Add to User Collection activity uses the Powershell activity template to access the SCCM server. The activity is configured to use a MID Server with Powershell capabilities and to run a MID Server script called AddToUserCollection.ps1 to edit the collection.
To access this activity in the Workflow Editor, select the Custom tab, and then navigate to Custom Activities > System Center Configuration Manager (SCCM).
Note: The Add to User Collection activity does not use pre-processing or post processing scripts.
Input variables
| Variable | Description |
|---|---|
| sccmServer | The fully qualified domain name (FQDN) of the SCCM server. |
| collection | Name of the user collection. |
| user | Name of the user to add to the collection. |
Output variable
| Variable | Description |
|---|---|
| output | Variable that contains a value that is passed to other activities in the workflow. |
| error | Variable that contains the activity output error message. |
Conditions
| Success | Activity successfully added a user to the SCCM user collection. |
| Failure | Activity failed to add a user to the SCCM user collection. |
Parent Topic:SCCM activity pack
49 lines · 2.2 KB
--- title: Add to User Collection activity description: The Add to User Collection activity adds a user to a Microsoft System Center Configuration Manager \(SCCM\) user collection. locale: en-US canonical_url: https://www.servicenow.com/docs/r/servicenow-platform/orchestration/r\_AddToUserCollectionActivity.html release: brazil product: Orchestration classification: orchestration topic_type: reference last_updated: "2026-09-10" reading_time_minutes: 1 breadcrumb: [SCCM activity pack, Orchestration activity packs, Classic Orchestration, ServiceNow AI Platform Additional Capabilities, Extend ServiceNow AI Platform capabilities] --- # Add to User Collection activity The Add to User Collection activity adds a user to a Microsoft System Center Configuration Manager \(SCCM\) user collection. The Add to User Collection activity uses the [Powershell activity template](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/servicenow-platform/orchestration/t_CreateAPowershellActivity.md) to access the SCCM server. The activity is configured to use a MID Server with Powershell capabilities and to run a MID Server script called AddToUserCollection.ps1 to edit the collection. To access this activity in the Workflow Editor, select the **Custom** tab, and then navigate to **Custom Activities** > **System Center Configuration Manager \(SCCM\)**. **Note:** The Add to User Collection activity does not use pre-processing or post processing scripts. ## Input variables |Variable|Description| |--------|-----------| |sccmServer|The fully qualified domain name \(FQDN\) of the SCCM server.| |collection|Name of the user collection.| |user|Name of the user to add to the collection.| ## Output variable |Variable|Description| |--------|-----------| |output|Variable that contains a value that is passed to other activities in the workflow.| |error|Variable that contains the activity output error message.| ## Conditions | | | |---|---| |Success|Activity successfully added a user to the SCCM user collection.| |Failure|Activity failed to add a user to the SCCM user collection.| **Parent Topic:**[SCCM activity pack](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/servicenow-platform/orchestration/c_SCCMActivityPack.md)
| title | Add to User Collection activity |
| description | The Add to User Collection activity adds a user to a Microsoft System Center Configuration Manager \(SCCM\) user collection. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/servicenow-platform/orchestration/r\_AddToUserCollectionActivity.html |
| release | brazil |
| product | Orchestration |
| classification | orchestration |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | SCCM activity packOrchestration activity packsClassic OrchestrationServiceNow AI Platform Additional CapabilitiesExtend ServiceNow AI Platform capabilities |