Set-EntraIdentityProvider

This cmdlet is used to update the properties of an existing identity provider configured in the directory.

Syntax

Set-EntraIdentityProvider
    -Id <String>
    [-Type <String>]
    [-ClientSecret <String>]
    [-ClientId <String>]
   [-Name <String>] 
   [<CommonParameters>]

Description

This cmdlet can be used to update the properties of an existing identity provider. The type of the identity provider can't be modified.

Examples

Example 1: Update client id of an identity provider

PS C:\> Set-EntraIdentityProvider -Id LinkedIn-OAUTH -ClientId NewClientId

This example updates the client ID for the specified identity provider.

Example 2: Update client secret of an identity provider

PS C:\> Set-EntraIdentityProvider -Id LinkedIn-OAUTH -ClientSecret NewClientSecret

This example updates the client secret for the specified identity provider.

Example 3: Update display name of an identity provider

PS C:\> Set-EntraIdentityProvider -Id LinkedIn-OAUTH -Name NewName

This example updates the display name for the specified identity provider.

Parameters

-ClientId

The client ID for the application. This is the client ID obtained when registering the application with the identity provider.

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

-ClientSecret

The client secret for the application. This is the client secret obtained when registering the application with the identity provider.

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

-Id

The unique identifier for an identity provider.

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

-Name

The display name of the identity provider.

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

-Type

The identity provider type. It must be one of the following values: Microsoft, Google, Facebook, Amazon, or LinkedIn.

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

Inputs

System.String

Outputs

System.Object