Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

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 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

VariableDescription
sccmServerThe fully qualified domain name (FQDN) of the SCCM server.
collectionName of the user collection.
userName of the user to add to the collection.

Output variable

VariableDescription
outputVariable that contains a value that is passed to other activities in the workflow.
errorVariable that contains the activity output error message.

Conditions

  
SuccessActivity successfully added a user to the SCCM user collection.
FailureActivity failed to add a user to the SCCM user collection.

Parent Topic:SCCM activity pack