Check if the logged in user has the given privilege for the given tenantId.
Namespace: CelloSaaS.BusinessEdition.ServiceProxies.AccessControlManagementAssembly: CelloSaaS.BusinessEdition (in CelloSaaS.BusinessEdition.dll) Version: 4.3.1.0 (4.3.1.0)
public static bool CheckTenantAccessPrivilege(
string userId,
string privilege,
string tenantId
)
public static bool CheckTenantAccessPrivilege(
string userId,
string privilege,
string tenantId
)
Public Shared Function CheckTenantAccessPrivilege (
userId As String,
privilege As String,
tenantId As String
) As Boolean
Public Shared Function CheckTenantAccessPrivilege (
userId As String,
privilege As String,
tenantId As String
) As Boolean
static member CheckTenantAccessPrivilege :
userId : string *
privilege : string *
tenantId : string -> bool
static member CheckTenantAccessPrivilege :
userId : string *
privilege : string *
tenantId : string -> bool
Parameters
- userId
- Type: System String
The user id.
- privilege
- Type: System String
The privilege.
- tenantId
- Type: System String
The tenant id.
Return Value
Type:
Booleantrueif the user has the access privilege,
falseotherwise