This is generally an internal UserSpice function and is not usually used by developers.
<?php $data = fetchPermissionUsers(2); ?>
Will return an array of objects. Each object will contain the id in the table user_permission_matches as well as the user id of the user with that permission level.
So, if you have 10 users with that level, you will get an array of 10 objects.