Set-AzureADMSPasswordSingleSignOnCredential

Sets the password SSO credentials

Syntax

Set-AzureADMSPasswordSingleSignOnCredential
   -ObjectId <String>
   -PasswordSSOCredential <PasswordSSOCredentials>
   [<CommonParameters>]

Description

This cmdlet enables users to set their Password Single-sign-on credentials for an application which they are part of. Admin could set the group credentials as well.

Examples

Set password single-sign-on credentials

PS C:\> $credentials = New-Object -TypeName Microsoft.Open.MSGraph.Model.PasswordSSOCredentials
PS C:\> $credentials.Id = "a4210a97-5e26-4cfe-88f1-118ed4886f27"
PS C:\> $creds1 = [Microsoft.Open.MSGraph.Model.PasswordSSOCredential]@{FieldId="param_1"; Value="barfoo@ms.com"; Type="text"}
PS C:\> $creds2 = [Microsoft.Open.MSGraph.Model.PasswordSSOCredential]@{FieldId="param_2"; Value="my-secret"; Type="password"}
PS C:\> $credentials.Credentials = @($creds1, $creds2)
PS C:\> Set-AzureADMSPasswordSingleSignOnCredential -ObjectId 9ac9883e-0ac5-4c32-8737-4267f56a28cc -PasswordSSOCredential $credentials

This command sets the password sso credentials for the given ObjectId and PasswordSSOObjectId.

Parameters

-ObjectId

The unique identifier of the object specific Azure Active Directory object

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PasswordSSOCredential

User or group id

Type:PasswordSSOCredentials
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False