How to manipulate users under each resource

Hi Team, i would like to know if there is a way to count the number of users attribued to a given resource, and in a second step to list them all with authorization scopes assigned to them.