PrivilegeProxy GetPrivileges Method (String, String) CelloSaaS API Documentation
Get all privilege details base on the privilege search name and tenant code

Namespace: CelloSaaS.BusinessEdition.ServiceProxies.AccessControlManagement
Assembly: CelloSaaS.BusinessEdition (in CelloSaaS.BusinessEdition.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax

public static List<Privilege> GetPrivileges(
	string searchPrivilege,
	string tenantCode
)

Parameters

searchPrivilege
Type: System String
Privilege Name
tenantCode
Type: System String
Tenant Code(Mandatory)

Return Value

Type: List Privilege 
Privilege Details
Exceptions

ExceptionCondition
[!:CelloSaaS.ServiceContracts.AccessControlManagement.PrivilegeException]If db exception occurs
System ArgumentNullExceptionIf tenant code is null or empty
Examples

public void GetPrivileges()
{
    string searchPrivilege = "a";
    string tenantCode = "B590CD25-3093-DF11-8DEB-001EC9DAB123":
    List<Privilege> privileges = PrivilegeProxy.GetPrivileges(searchPrivilege, tenantCode);
}
See Also