|
<<SNIP>> Adopted authority is passed on in the call stack.
Say user PETER calls program A, that is owned by PAUL and has USRPRF(*OWNER). During execution of A the combined authorities of
PETER and PAUL are used. When program A calls program B, that is
owned by MARY and has USRPRF(*OWNER), authorities of PETER, PAUL
and MARY are used.
Exceptions:
- When a program has USEADPAUT(*NO) it 'breaks the chain';
- SQL statements; when you use <ed: Dynamic> SQL in your program and want to use adopted authority you have to use SQL setting DYNUSRPRF(*OWNER)
- Stream files; filesystems other than QSYS.LIB have no notion of
adopted authority; you're on your own 'out there'.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.