1c-role-info

Parses 1C role Rights.xml files into compact summaries of allowed rights, RLS, and templates.

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/pavelvdo/universal-xml-exchange2 --skill 1c-role-info-pavelvdo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 1c-role-info
Source: https://github.com/pavelvdo/universal-xml-exchange2/tree/main/.cursor/skills/1c-roles/info
Command: npx skills add https://github.com/pavelvdo/universal-xml-exchange2 --skill 1c-role-info-pavelvdo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? 1C role definitions in Rights.xml span thousands of XML lines, making manual review of granted rights, RLS restrictions, and templates impractical. This Skill compresses a role's rights into a 50–150 line readable summary for analysis before modification or audit. ## Core Features & Use Cases - Rights Summarization: Groups allowed rights by metadata object type (Catalog, Document, InformationRegister, etc.), showing only granted rights per object. - RLS and Template Detection: Flags rights with row-level security restrictions and lists restriction templates defined in the role. - Paginated Output: Handles large roles via -Limit and -Offset parameters, with UTF-8 file output to preserve Cyrillic names. - Use Case: Before modifying a 1C role like "BasicRightsBP", run the script on its Rights.xml to see all 138 allowed rights, 18 denied rights, and 4 RLS restrictions in one compact view. ## Quick Start Ask the assistant to analyze the role rights by running the 1c-role-info script against the role's Rights.xml file and writing the summary to an output file.

Frequently Asked Questions about 1c-role-info

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

FAQPage Schema
How do I analyze 1C role rights from Rights.xml?

Run the role-info.ps1 PowerShell script with the -RightsPath parameter pointing to the role's Rights.xml file, typically located at Roles/RoleName/Ext/Rights.xml. Use -OutFile to write the summary to a UTF-8 file and read it back.

How to view denied rights in a 1C role summary?

Pass the -ShowDenied switch to the script. By default denied rights are hidden and only counted; with this flag they are listed per object with a minus prefix, grouped by metadata type.

Does the script show RLS restrictions in 1C roles?

Yes. Rights carrying a restrictionByCondition element are marked with an [RLS] suffix in the output, and the summary reports the total count of RLS restrictions plus the names of restriction templates defined in the role.

Why is Cyrillic text corrupted in the script console output?

Direct console output may corrupt Cyrillic characters due to encoding. Always use the -OutFile parameter, which writes results as UTF-8 with BOM, then read the file instead of relying on console display.

How do I handle large 1C roles with truncated output?

Use the -Limit and -Offset parameters for pagination. The default limit is 150 lines; when output is truncated, rerun with -Offset set to the next page start shown in the truncation notice.