EnvironmentCredentialOptions.AdditionallyAllowedTenants Property

Definition

Specifies tenants in addition to the specified Azure.Identity.EnvironmentCredentialOptions.TenantId for which the credential may acquire tokens. Add the wildcard value "*" to allow the credential to acquire tokens for any tenant the logged in account can access. If no value is specified for Azure.Identity.EnvironmentCredentialOptions.TenantId, this option will have no effect on that authentication method, and the credential will acquire tokens for any requested tenant when using that method. This value defaults to the value of the environment variable AZURE_ADDITIONALLY_ALLOWED_TENANTS.

public System.Collections.Generic.IList<string> AdditionallyAllowedTenants { get; }
member this.AdditionallyAllowedTenants : System.Collections.Generic.IList<string>
Public ReadOnly Property AdditionallyAllowedTenants As IList(Of String)

Property Value

Applies to