Answer the question
In order to leave comments, you need to log in
How to check the user's access group profile correctly?
If an external report, the only one on which you need to limit the rights.
To do this, I created an empty profile of access groups - "SuperAccess".
In the report code, when opening, you need to check whether this profile is assigned to the user or not.
While doing so, by request:
Запрос.Текст = "ВЫБРАТЬ
| ГруппыДоступа.Ссылка
| ИЗ
| Справочник.ГруппыДоступа КАК ГруппыДоступа
| ГДЕ
| ГруппыДоступа.Пользователи.Пользователь = &ТекущийПользователь
| И
| ГруппыДоступа.Наименование = "СуперДоступ";
Запрос.УстановитьПараметр("ТекущийПользователь", ПараметрыСеанса.ТекущийПользователь);
Answer the question
In order to leave comments, you need to log in
Apparently, a BSP-based configuration is used. Can use the regular capabilities of the subsystem "Additional reports and processing"? There you can list by name all users to whom this report will be available.
The external report must not depend on the profile names in the configuration. It's best to turn on RLS, create a profile with the right to this external report only, and write "everything except this" in other profiles that have access to external reports.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question