---
sourceDocument: オーストラリア ServiceNow AI Platform の機能
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/servicenow-platform

 Release :

    - australia

ft:locale :

    - ja-JP

ft:publication_title :

    - オーストラリア ServiceNow AI Platform の機能

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# \[ユーザー コレクションに追加\] アクティビティ

# \[ユーザー コレクションに追加\] アクティビティ {#ariaid-title1}

* リリースバージョン: Australia
* 
* 更新日 2026年03月12日
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 所要時間：1分

\[ユーザー コレクションに追加\] アクティビティは、Microsoft System Center Configuration Manager (SCCM) ユーザー コレクションにユーザーを追加します。
\[ユーザー コレクションに追加\] アクティビティは、[Powershell アクティビティテンプレート](https://servicenow-prod.fluidtopics.net/lcI9_3_ZdVVruFkuGCGo5g#t_CreateAPowershellActivity "Microsoft PowerShell を使用してホストからワークフローにデータを返すために、カスタム PowerShell アクティビティを作成します。")を使用して SCCM サーバーにアクセスします。アクティビティは、PowerShell 機能を備えた MID サーバーを使用し、AddToUserCollection.ps1 と呼ばれる MID サーバースクリプトを実行してコレクションを編集するように設定されています。{#r_AddToUserCollectionActivity__p_AccessSSHCustomActivities}

ワークフローエディターでこのアクティビティにアクセスするには、\[ カスタム\] タブを選択し、 カスタムアクティビティSystem Center Configuration Manager (SCCM).  
注:  
\[ユーザー コレクションに追加\] アクティビティは、前処理スクリプトまたは後処理スクリプトを使用しません。

## 入力変数

{#r_AddToUserCollectionActivity__table_jhr_xbd_3s__entry__2}

| 変数 | 説明 |
|-|-|
| sccmServer | SCCM サーバーの完全修飾ドメイン名 (FQDN)。 |
| collection | ユーザー コレクションの名前。 |
| ユーザー | コレクションに追加するユーザーの名前。 |
[表 : 1. \[ユーザー コレクションに追加\] 入力変数]

{#r_AddToUserCollectionActivity__table_jhr_xbd_3s}

## 出力変数

{#r_AddToUserCollectionActivity__table_t4z_f4m_xs__entry__2}

| 変数 | 説明 |
|-|-|
| output | ワークフロー内の他のアクティビティに渡される値を含む変数。 |
| エラー | アクティビティ出力エラーメッセージを含む変数。 |
[表 : 2. \[ユーザー コレクションに追加\] 出力変数]

{#r_AddToUserCollectionActivity__table_t4z_f4m_xs}

## 条件

{#r_AddToUserCollectionActivity__table_d5z_54m_xs__entry__2}

|   |   |
|-|-|
| 成功 | アクティビティがユーザーを SCCM ユーザー コレクションに正常に追加しました。 |
| 失敗 | アクティビティがユーザーを SCCM ユーザー コレクションに追加できませんでした。 |
[表 : 3. \[ユーザー コレクションに追加\] 条件]

{#r_AddToUserCollectionActivity__table_d5z_54m_xs}

