RoleProxy GetRoleDetailsByRoleId Method CelloSaaS API Documentation
Fetchs the role details for role Identifier

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

public static Role GetRoleDetailsByRoleId(
	string roleId
)

Parameters

roleId
Type: System String
Role Identifier(Mandatory)

Return Value

Type: Role
Role Details
Exceptions

ExceptionCondition
[!:CelloSaaS.ServiceContracts.AccessControlManagement.RoleException]If db exception occurs while getting role details.
System ArgumentNullExceptionIf role id is null or empty.
System UnauthorizedAccessExceptionIf the user has not the privilege.
Examples

public void GetRoleDetailsByRoleId()
{
    string roleId = "GR$Tenant_Admin";
    Role roles = RoleProxy.GetRoleDetailsByRoleId(roleId);
}
See Also