/configure-access-rights

Configure Directum RX access rights with role mapping and AccessRightsMode.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/dunaevdmitriys-dev/directum-mcp-server --skill configure-access-rights
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: /configure-access-rights
Source: https://github.com/dunaevdmitriys-dev/directum-mcp-server/tree/main/skills/configure-access-rights
Command: npx skills add https://github.com/dunaevdmitriys-dev/directum-mcp-server --skill configure-access-rights

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents access-rights misconfiguration in Directum RX by guiding you to correctly set roles, assign per-type and per-instance grants, and align AccessRightsMode in entity metadata.

Core Features & Use Cases

  • Role setup with stable GUIDs: Define role identifiers once (e.g., in ModuleConstants) and create localized, idempotent roles during module initialization.
  • Per-type and per-instance permission grants: Grant rights to whole entity types (DefaultAccessRightsTypes) and additionally grant rights at runtime for specific instances when required.
  • Correct metadata configuration: Set AccessRightsMode in .mtd to Type, Instance, or Both so the platform enforces the expected authorization model.
  • Dynamic authorization via ComputedRoles: Use computed roles to produce recipients based on entity data (e.g., experts for a contract).
  • Inheritance for linked entities: Apply leading-entity inheritance using EntitySecureLinks so child objects reuse the parent’s authorization scope.
  • Use Cases: onboarding modules with consistent CRM security, restricting document kinds, controlling changes on specific deals/tasks, and implementing department-based or assignment-based authorization rules.

Quick Start

Ask the AI to produce a complete ModuleInitializer + GrantRights plan for your Directum RX entity, including the role GUID strategy, the per-type grants, and the required AccessRightsMode value for your .mtd based on whether rights must be enforced on type, instance, or both.

Frequently Asked Questions about /configure-access-rights

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure access rights in Directum RX so permissions apply to both entity types and specific instances?

To configure access rights in Directum RX, you map roles to entity types using DefaultAccessRightsTypes and grant per-instance permissions at runtime. You must also align AccessRightsMode in entity metadata to Both so the platform enforces type and instance authorization simultaneously.

What does AccessRightsMode in Directum RX entity metadata control?

AccessRightsMode in Directum RX entity metadata controls whether the platform enforces authorization on a Type level, an Instance level, or Both. Setting this value correctly in your .mtd files ensures the platform applies the intended permission grants.

How do I set up idempotent roles during Directum RX module initialization?

To set up idempotent roles during Directum RX module initialization, define stable role GUIDs once in ModuleConstants and create localized roles within the ModuleInitializer. This ensures role creation runs consistently without duplicating entries on subsequent executions.

Can I use computed roles to dynamically assign access rights based on entity data in Directum RX?

Yes, you can use ComputedRoles in Directum RX to dynamically assign access rights based on entity data. This allows you to produce authorization recipients contextually, such as assigning experts to a specific contract, enabling dynamic CRM security policies.

How do I apply leading-entity inheritance for child objects in Directum RX?

You apply leading-entity inheritance in Directum RX by using EntitySecureLinks to connect child objects to their parent. This configuration ensures child entities reuse the parent’s authorization scope, maintaining consistent access rights across linked records.

Why are my Directum RX per-type grants not enforcing the expected authorization rules?

Per-type grants in Directum RX fail to enforce authorization when AccessRightsMode in the entity metadata is not aligned with your intended model. You must explicitly set AccessRightsMode to Type, Instance, or Both in your .mtd files to match your Grant and Save flows.