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

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

Role GetRoleDetailsByRoleId(
	string roleId
)

Parameters

roleId
Type: System String
Role Identifier(Mandatory)

Return Value

Type: Role
Role Details
Exceptions

ExceptionCondition
CelloSaaS.ServiceContracts.AccessControlManagement RoleExceptionIf 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";
    IRoleService roleService = ServiceLocator.Resolve>IRoleService<();
    Role roles = roleService.GetRoleDetailsByRoleId(roleId);
}
See Also