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


---

# Get User Collections activity

# Get User Collections activity {#ariaid-title1}

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

The Get User Collections activity returns the list of available user collections on a
Microsoft System Center Configuration Manager (SCCM) server.
The Get User Collections 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 user collections on the SCCM server.
The activity is configured to use a MID Server with Powershell capabilities and to run a MID
Server script called GetUserCollections.ps1 that returns the user
collections on the host. This script filters the results of the GET, so that only specific
attributes are returned for the user collections on the SCCM server. Filtering the results
in this manner controls the size of the payload, while providing the most desirable user
collection data. The list of available collections is returned as an array in a JSON
object.{#r_GetUserCollectionsActivity__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 Get User Collections activity does not use pre-processing scripts.

## Input variables

{#r_GetUserCollectionsActivity__table_jhr_xbd_3s__entry__2}

| Variable | Description |
|-|-|
| sccmServer | The fully qualified domain name (FQDN) of the SCCM server. |
[Tabelle : 1. Get User Collections input variables]

{#r_GetUserCollectionsActivity__table_jhr_xbd_3s}

## Output variables

{#r_GetUserCollectionsActivity__table_pkz_csm_xs__entry__2}

| Variable | Description |
|-|-|
| userCollections | The userCollections array contains these attributes: * id: Primary key of the SCCM user collection. * name: Name of the SCCM user collection. * collectionType: Type of SCCM collection. In this case, the value is user. * localMemberCount: Count of user collection members visible at the local SCCM site. * memberCount: Count of all user collection members. * userCollection: Object containing the data set of attributes listed here for this user collection. Use the post-processing script to parse additional data from this set to use. {#r_GetUserCollectionsActivity__ul_t2p_xpy_3t} |
| error | Variable that contains the activity output error message. |
[Tabelle : 2. Get User Collections output variables]

{#r_GetUserCollectionsActivity__table_pkz_csm_xs}

## Conditions

{#r_GetUserCollectionsActivity__table_dfl_gsm_xs__entry__2}

| Condition | Description |
|-|-|
| Success | Activity successfully retrieved the list of available user collections on an SCCM host. |
| Failure | Activity failed to retrieve the list of available user collections on an SCCM host. |
[Tabelle : 3. Get User Collections conditions]

{#r_GetUserCollectionsActivity__table_dfl_gsm_xs}

