# Clear-AmsIdpClaimMapping

## SYNOPSIS

Removes all claim mappings for an identity provider

## SYNTAX

```
Clear-AmsIdpClaimMapping -IdpType <AuthenticationMode> [<CommonParameters>]
```

## DESCRIPTION

Claim mappings are used to map claims provided by an identity provider to directory attributes in the Active Directory, so that users can be identified and authenticated by the system.

By default, Access Manager automatically maps the 'upn', 'sid' and 'onprem\_sid' claims to their respective AD attributes.

This cmdlet removes all custom claim mappings for the specified identity provider. Returning to the default claim mappings.

## EXAMPLES

### Example 1

```powershell
PS C:\> Clear-AmsIdpClaimMapping -IdpType oidc
```

This example removes all claim mappings for an OpenID Connect identity provider

### Example 2

```powershell
PS C:\> Clear-AmsIdpClaimMapping -IdpType wsfed
```

This example removes all claim mappings for a WS-Federation identity provider

## PARAMETERS

### -IdpType

The type of identity provider that this claim mapping applies to. Value can be 'oidc' or 'wsfed'

```yaml
Type: AuthenticationMode
Parameter Sets: (All)
Aliases:
Accepted values: wsfed, oidc

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

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None

## OUTPUTS

### System.Object

## NOTES

## RELATED LINKS
