TenantDataAccountNamePattern Property

Gets or sets the account name pattern.

Namespace:  Dundas.BI.WebApi.Models
Assembly:  Dundas.BI.WebApiCore (in Dundas.BI.WebApiCore.dll) Version: 2.0.0.0 (24.4.0.1000)
Syntax
[DataMemberAttribute(Name = "accountNamePattern", EmitDefaultValue = false)]
public string? AccountNamePattern { get; set; }

Property Value

Type: String
A regular expression against which all account names associated with the tenant must match. An empty string or indicates that no pattern matching is enforced.
Remarks
Use this property to mitigate the possibility that two tenants try to create accounts with the same name. Consider the case where no pattern is specified: Tenant1 creates an account named "Account1", and some time later Tenant2 tries to create an account with the same name. Tenant2 will fail because there is already an account with that name. However, Tenant2 will be confused, because there are no accounts with that name in his user list (since he doesn't see accounts belonging to other tenants). If each tenant has a unique pattern, (e.g. "@tenant1.com$"), it will be much less likely for such a collision to occur.
See Also