Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Dynamic Row Level Security Flows acces

Hello!

 

I have this problem:

 

I need to analyze the flows in the branches.

We have granted rights in table BRANCH_FLOW_ACCES so that each branch sees a certain flow.

Recently, one branch (branch d) was taken over by another branch (branch a). How can I give rights in the FCT_Flows table so that branch A can see its flows, but also those of branch D ?

 

 

FCT_FLOW
   
FLOWSBRANCHSTATE
FLOW 1BRANCH DSTATE 1
FLOW 1BRANCH DSTATE 3
FLOW 1BRANCH ASTATE 1
FLOW 2BRANCH ASTATE 3
FLOW 1BRANCH CSTATE 3

 

DIM_FLOW
   
FLOWSTATESTATE NAME
F1STATE 1Approved
F1STATE 3Finalized
F2STATE 1Approved

 

 

BRANCH_FLOW_ACCES
BRANCHFLOW
BRANCH DF1
BRANCH DF1
BRANCH AF2

 

 

Thank you ~~!

2 Replies

  • Please show your data model and indicate the RLS rules and where they are applied.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hello lbendlin ! 

     

    This is my data model: 

     

     

    BRANCH_FLOW_ACCES = FCT_HO_USERRS_ACCESS

    In FCT_HO_USERRS_ACCESS I associated user-level flows in table FCT_HO_USERRS_ACCESS.

    My RLS need to be apply  on FCT_FLOWS, because I need to give rights in this table so that branch A can see its flows, but also those of branch D.

     

     

    Thank you~~!