fixes #5909 - return r/w resources from authorized scope
(cherry picked from commit 0d80512c3293895750ffda82489b719c38ec5612)
fixes #5909 - return r/w resources from authorized scope
(cherry picked from commit 0d80512c3293895750ffda82489b719c38ec5612)