Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.
  • Madrid
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store

Add to User Collection activity

Log in to subscribe to topics and get notified when content changes.

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

Table 1. Add to User Collection 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

Table 2. Add to User Collection output variables
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.


Table 3. Add to User Collection conditions
Success Activity successfully added a user to the SCCM user collection.
Failure Activity failed to add a user to the SCCM user collection.