Fetchs the role details for role Identifier
Namespace: CelloSaaS.ServiceContracts.AccessControlManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- roleId
- Type: System String
Role Identifier(Mandatory)
Return Value
Type: RoleRole Details
Exceptions
Exception | Condition |
---|---|
CelloSaaS.ServiceContracts.AccessControlManagement RoleException | If db exception occurs while getting role details. |
System ArgumentNullException | If role id is null or empty. |
System UnauthorizedAccessException | If 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