List availableProviderTypes (deprecated)
Article
09/27/2023
5 contributors
Feedback
In this article
Namespace: microsoft.graph
Caution
This identity provider API is deprecated and will stop returning data after March, 2023. Please use the new identity provider API .
Retrieves all identity provider types available in a directory.
This API is supported in the following national cloud deployments .
Global service
US Government L4
US Government L5 (DOD)
China operated by 21Vianet
✅
❌
❌
❌
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions .
Permission type
Permissions (from least to most privileged)
Delegated (work or school account)
IdentityProvider.Read.All, IdentityProvider.ReadWrite.All
Delegated (personal Microsoft account)
Not supported.
Application
IdentityProvider.Read.All, IdentityProvider.ReadWrite.All
The work or school account needs to belong to one of the following roles:
Global Administrator
External Identity Provider Administrator
HTTP request
GET /identityProviders/availableProviderTypes
Name
Description
Authorization
Bearer {token}. Required.
Request body
Do not supply a request body for this method.
Response
If successful, this function returns a 200 OK
response code and a String collection in the response body.
Example
Request
The following is an example of the request.
GET https://graph.microsoft.com/v1.0/identityProviders/availableProviderTypes
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var result = await graphClient.IdentityProviders.AvailableProviderTypes.GetAsync();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
//other-imports
)
graphClient := msgraphsdk.NewGraphServiceClientWithCredentials(cred, scopes)
availableProviderTypes, err := graphClient.IdentityProviders().AvailableProviderTypes().Get(context.Background(), nil)
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
GraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
IdentityProviderAvailableProviderTypesCollectionPage availableProviderTypes = graphClient.identityProviders()
.availableProviderTypes()
.buildRequest()
.get();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
const options = {
authProvider,
};
const client = Client.init(options);
let availableProviderTypes = await client.api('/identityProviders/availableProviderTypes')
.get();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
<?php
// THIS SNIPPET IS A PREVIEW VERSION OF THE SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$result = $graphServiceClient->identityProviders()->availableProviderTypes()->get()->wait();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
# THE PYTHON SDK IS IN PREVIEW. FOR NON-PRODUCTION USE ONLY
graph_client = GraphServiceClient(request_adapter)
result = await graph_client.identity_providers.available_provider_types.get()
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
Response
The following is an example of the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"value": [
"Google",
"Facebook",
"MicrosoftAccount",
"EmailOTP"
]
}