---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Add to User Collection activity

# Add to User Collection activity {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

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://servicenow-prod.fluidtopics.net/SV5g3MJvrMeLhWdD7UG1VQ#t_CreateAPowershellActivity "Create a custom PowerShell activity return data to a workflow from a host using Microsoft PowerShell.")
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.{#r_AddToUserCollectionActivity__p_AccessSSHCustomActivities}

To access this activity in the Workflow Editor, select the Custom
tab, and then navigate to Custom ActivitiesSystem Center Configuration Manager (SCCM).  
Hinweis:  
The Add to User Collection activity does not use pre-processing or post processing scripts.

## Input variables

{#r_AddToUserCollectionActivity__table_jhr_xbd_3s__entry__2}

| 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. |
[Tabelle : 1. Add to User Collection input variables]

{#r_AddToUserCollectionActivity__table_jhr_xbd_3s}

## Output variable

{#r_AddToUserCollectionActivity__table_t4z_f4m_xs__entry__2}

| 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. |
[Tabelle : 2. Add to User Collection output variables]

{#r_AddToUserCollectionActivity__table_t4z_f4m_xs}

## Conditions

{#r_AddToUserCollectionActivity__table_d5z_54m_xs__entry__2}

|   |   |
|-|-|
| Success | Activity successfully added a user to the SCCM user collection. |
| Failure | Activity failed to add a user to the SCCM user collection. |
[Tabelle : 3. Add to User Collection conditions]

{#r_AddToUserCollectionActivity__table_d5z_54m_xs}

