Add getKeys method by resource.

Used to get users by resource id. Connected with client permissions issues client/#3426 client/#3425