Create custom permission group to see a subset of system roles on Angular web portal

Hello everyone,

how can I set up a custom permission group for a user in order to see a subset of system roles?

The user should see, apart from default sections, the Data Administrator > Data Explorer section. In it, in the System Roles tab, he should see only some selected system roles (on a query basis). How is it possible?

Thank you,
Lucrezia

Parents Reply
  • I'm not sure I understand your use-case exactly, because OOTB everyone can view the ESet's based on the V_4_ALLUSER_LOOKUP.
    So you should not need extra permissions (groups) for that.

    The API config option VI_Roles_Responsibility_ESet is used to filter out the ESet's you can already see based on your DB level permissions.

    If you put in 1 = 1 nothing will be filtered.

    Or you could extend the query so only users in a specific AERole can see the ESet's

    OR EXISTS (
    SELECT 1
    FROM PersonInAErole
    WHERE UID_AERole = 'UID...'
    AND UID_Person = '%useruid%'
    )

    Or you can combine this with some attribute of the ESET by which you can group them.

    OR (EXISTS (
    SELECT 1
    FROM PersonInAErole
    WHERE UID_AERole = 'UID...'
    AND UID_Person = '%useruid%'
    ) AND Ident_ESet LIKE 'TEST%')

    Or you can extend the schema of the ESET so you can assign an AERole
    so you can show the ESet's by AERole group membership

    OR (
    CCC_UID_AERole IN (
    SELECT UID_AERole
    FROM PersonInAERole
    WHERE UID_person = '%useruid%'
    ))

Children
No Data