Get-EntraBetaIdentityProvider
This cmdlet is used to retrieve the configured identity providers in the directory.
Syntax
GetQuery (Default)
Get-EntraBetaIdentityProvider
[-Property <String[]>]
[<CommonParameters>]
GetById
Get-EntraBetaIdentityProvider
-IdentityProviderBaseId <String>
[-Property <String[]>]
[<CommonParameters>]
Description
The Get-EntraBetaIdentityProvider
cmdlet is used to retrieve the identity providers that have been configured in the directory.
These identity providers can be used to allow users to sign up for or sign into applications secured by Microsoft Entra ID B2C.
Configuring an identity provider in your Microsoft Entra ID tenant also enables future B2B guest scenarios. For example, an organization has resources in Office 365 that needs to be shared with a Gmail user. The Gmail user will use their Google account credentials to authenticate and access the documents.
The current set of identity providers can be Microsoft, Google, Facebook, Amazon, or LinkedIn.
In delegated scenarios using work or school accounts, the signed-in user must have a Microsoft Entra role or custom role with the necessary permissions. The following least privileged roles support this operation:
- External Identity Provider Administrator
Examples
Example 1: Retrieve all identity providers
Connect-Entra -Scopes 'IdentityProvider.Read.All'
Get-EntraBetaIdentityProvider
Id DisplayName
-- -----------
AADSignup-OAUTH Directory Sign up
Google-OAUTH Test
EmailOtpSignup-OAUTH Email One Time Passcode
MSASignup-OAUTH Microsoft Account
This example retrieves the list of all configured identity providers and their properties.
Example 2: Retrieve identity provider by Id
Connect-Entra -Scopes 'IdentityProvider.Read.All'
Get-EntraBetaIdentityProvider -IdentityProviderBaseId 'Google-OAUTH'
Id DisplayName
-- -----------
Google-OAUTH GoogleName
This example retrieves the properties for the specified identity provider.
-IdentityProviderBaseId
parameter specifies the unique identifier of the identity provider.
Parameters
-IdentityProviderBaseId
The unique identifier for an identity provider.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | Id |
Parameter sets
GetById
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Property
Specifies properties to be returned.
Parameter properties
Type: | System.String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | Select |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.