useRoleDefinitions

useRoleDefinitions(
	options?:RoleDefinitionsOptions,
	deps?: any[]): IRoleDefinitionInfo[] | null | undefined;

Returns role definition collection.

Examples

Get all role definitions,

const roleDefByKind = useRoleDefinitions();

Query role definitions

const filteredroleDef = useRoleDefinitions({
	query: {
		select: ["Id", "Name", "Description", "Order"],
		filter: "Hidden eq false"
	}
});

Parameters

NameTypeDescriptionTracked for changes
options?RoleDefinitionsOptionsuseRoleDefinitions hook optionsPartially
deps?DependencyListHook dependency list.Yes