次の方法で共有


Update-SPSecureStoreGroupCredentialMapping

Secure Store Service アプリケーションの新しいグループ資格情報マッピングを設定します。

構文

Update-SPSecureStoreGroupCredentialMapping
      -Identity <SPSecureStoreApplication>
      -Values <SecureString[]>
      [-AssignmentCollection <SPAssignmentCollection>]
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

説明

コマンドレットは Update-SPSecureStoreGroupCredentialMapping 、Secure Store Service アプリケーションの新しいグループ資格情報マッピングを設定します。 グループ資格情報は、複数の ID に関連付けられている一連の資格情報です。 ターゲット アプリケーションは、現在のユーザーを使用して、Secure Store アプリケーションの資格情報を取得します。 現在のユーザーが、グループ資格情報に関して、Secure Store アプリケーションで定義された承認規則を満たしている場合は、そのデータが提供されます。

Windows PowerShell for SharePoint 製品のアクセス許可と最新情報については、「SharePoint Server コマンドレット」のオンライン ドキュメントをご覧ください。

------------------ 例 ------------------

$ssApp = Get-SPSecureStoreApplication -ServiceContext http://contoso -Name "ContosoGroupTargetApplication"
$firstCredential = ConvertTo-SecureString "LOBDATABASE\fulltimeemployees" -AsPlainText -Force
$secondCredential = ConvertTo-SecureString "abcDEF123$%^" -AsPlainText -Force
$credentialValues = $firstCredential,$secondCredential
Update-SPSecureStoreGroupCredentialMapping -Identity $ssApp -Values $credentialValues

この例では、ターゲット アプリケーション ContosoGroupTargetApplication の資格情報のマッピングを、このグループ ターゲット アプリケーション内のすべてのユーザーについて追加します。 これらのユーザーは、ID fulltimeemployees (ドメイン LOBDATABASE、パスワード abcDEF123$%^) のユーザー名で、外部システム上の資格情報値のペアにマッピングされます。

パラメーター

-AssignmentCollection

適切な破棄を行うためにオブジェクトを管理します。 SPWeb や SPSite などのオブジェクトの使用によって大量のメモリが使用される場合があるので、Windows PowerShell スクリプトでこれらのオブジェクトを使用するには適切なメモリ管理が必要です。 メモリの解放が必要になった場合は、SPAssignment オブジェクトを使用して、変数へのオブジェクトの割り当てとオブジェクトの破棄を行うことができます。 割り当てコレクションまたは Global パラメーターが使用されていない場合、SPWeb、SPSite、または SPSiteAdministration オブジェクトが使用されていると、オブジェクトは自動的に破棄されます。

Global パラメーターが使用されている場合は、オブジェクトはすべてグローバル ストアに格納されます。 Stop-SPAssignment コマンドを使用してオブジェクトの使用または破棄を直接行わないと、メモリ不足のシナリオになる場合があります。

Type:SPAssignmentCollection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Confirm

コマンドを実行する前に確認メッセージを表示します。 詳細については、次のコマンドを入力します。get-help about_commonparameters

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Identity

資格情報のマッピングの削除対象となる (プリンシパルを含む) Secure Store アプリケーションを指定します。

Type:SPSecureStoreApplication
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Values

資格情報のマッピングのフィールド値を指定します。

Type:SecureString[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WhatIf

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition