2007 Sep 13 10:30 PM
Hello,
I'm currently trying to find out in which AGR_* table is stored the flag that indicates whether a role is a composite or a single one.
I try AGR_DEFINE but it seems that there is no flag to determine whether the role is single or composite. I can't look in AGR_AGRS because i'm trying to determine composite role without any single role associated and therefore there is no entry in AGR_AGRS.
Do you have any idea ?
Thank you very much for your help !
Jerome.
2007 Sep 13 11:01 PM
2007 Sep 13 11:01 PM
2024 Oct 22 6:01 PM
Example how to get composite roles in native SQL:
SELECT MANDT, AGR_NAME FROM AGR_FLAGS
WHERE FLAG_TYPE = 'COLL_AGR' AND FLAG_VALUE = 'X'
Example how to get single Z roles (not composite) which don't have authorizations, in native SQL:
select agr_name
from agr_define
where mandt = '100'
and agr_name like 'Z%'
and exists ( select * from agr_flags
where mandt = agr_define.mandt
and agr_name = agr_define.agr_name
and flag_type = 'COLL_AGR'
and flag_value = ' ' )
and not exists ( select * from agr_1250
where mandt = agr_define.mandt
and agr_name = agr_define.agr_name )
2007 Sep 13 11:12 PM
2007 Sep 14 9:08 AM
You can use the VIEW : V_AGR_COLL
If you go to se11 and look at the join conditions for this view you can see that in orde to have a composite rol, you should look at agr_flags for these conditions
AGR_FLAGS FLAG_TYPE EQ 'COLL_AGR'
AND
AGR_FLAGS FLAG_VALUE EQ 'X'
<edit>
i'm sorry, JC already said this, I missed that
</edit>
Message was edited by:
Dries Horions