@tobias2021
Thank you for your post!
If you're using the List appRoleAssignments granted for a service principal API, you should be able to use the OData query parameters to help customize the response. For more info - OData system query options
If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.
----------
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.