Partager via


CrmServiceClient.DiscoverGlobalOrganizations Method

Definition

Overloads

DiscoverGlobalOrganizations(Uri, ClientCredentials, UserIdentifier, String, Uri, String, Boolean, String, PromptBehavior, Boolean)

Discovers the organizations, used for OAuth.

DiscoverGlobalOrganizations(Uri, ClientCredentials, UserIdentifier, String, Uri, String, Boolean, String, UserIdentifier, PromptBehavior, Boolean)

DiscoverGlobalOrganizations(Uri, ClientCredentials, UserIdentifier, String, Uri, String, Boolean, String, PromptBehavior, Boolean)

Discovers the organizations, used for OAuth.

public static Microsoft.Xrm.Sdk.Discovery.OrganizationDetailCollection DiscoverGlobalOrganizations (Uri discoveryServiceUri, System.ServiceModel.Description.ClientCredentials clientCredentials, Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier user, string clientId, Uri redirectUri, string tokenCachePath, bool isOnPrem, string authority, Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior promptBehavior = Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior.Auto, bool useDefaultCreds = false);
static member DiscoverGlobalOrganizations : Uri * System.ServiceModel.Description.ClientCredentials * Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier * string * Uri * string * bool * string * Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior * bool -> Microsoft.Xrm.Sdk.Discovery.OrganizationDetailCollection
Public Shared Function DiscoverGlobalOrganizations (discoveryServiceUri As Uri, clientCredentials As ClientCredentials, user As UserIdentifier, clientId As String, redirectUri As Uri, tokenCachePath As String, isOnPrem As Boolean, authority As String, Optional promptBehavior As PromptBehavior = Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior.Auto, Optional useDefaultCreds As Boolean = false) As OrganizationDetailCollection

Parameters

discoveryServiceUri
Uri

The discovery service URI.

clientCredentials
ClientCredentials

The client credentials.

user
Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier

The user identifier.

clientId
String

The client Id.

redirectUri
Uri

The redirect uri.

tokenCachePath
String

The token cache path where token cache file is placed.

isOnPrem
Boolean

The deployment type: OnPrem or Online.

authority
String

The authority provider for OAuth tokens. Unique if any already known.

promptBehavior
Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior

The prompt behavior.

useDefaultCreds
Boolean

(Optional) if specified, tries to use the current user

Returns

A collection of organizations

Applies to

DiscoverGlobalOrganizations(Uri, ClientCredentials, UserIdentifier, String, Uri, String, Boolean, String, UserIdentifier, PromptBehavior, Boolean)

public static Microsoft.Xrm.Sdk.Discovery.OrganizationDetailCollection DiscoverGlobalOrganizations (Uri discoveryServiceUri, System.ServiceModel.Description.ClientCredentials clientCredentials, Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier user, string clientId, Uri redirectUri, string tokenCachePath, bool isOnPrem, string authority, out Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier foundUser, Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior promptBehavior = Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior.Auto, bool useDefaultCreds = false);
static member DiscoverGlobalOrganizations : Uri * System.ServiceModel.Description.ClientCredentials * Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier * string * Uri * string * bool * string * UserIdentifier * Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior * bool -> Microsoft.Xrm.Sdk.Discovery.OrganizationDetailCollection
Public Shared Function DiscoverGlobalOrganizations (discoveryServiceUri As Uri, clientCredentials As ClientCredentials, user As UserIdentifier, clientId As String, redirectUri As Uri, tokenCachePath As String, isOnPrem As Boolean, authority As String, ByRef foundUser As UserIdentifier, Optional promptBehavior As PromptBehavior = Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior.Auto, Optional useDefaultCreds As Boolean = false) As OrganizationDetailCollection

Parameters

discoveryServiceUri
Uri
clientCredentials
ClientCredentials
user
Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier
clientId
String
redirectUri
Uri
tokenCachePath
String
isOnPrem
Boolean
authority
String
foundUser
Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier
promptBehavior
Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior
useDefaultCreds
Boolean

Returns

Applies to