How to add values to the resource_access field in JWT claims?

Hello folks,

I’d like to add some values under resource_access keys in KWT claims.
The page (Client → Client details → Authorization → Resources) seems most likely the one that I can fulfil this, but it’s not working as I imagined.

Can anyone give me a clue to do this or proper manual for it?

Thank you