I am trying to get all permissions granted to a user for a specific API through Management API. So far I see two ways to do it:
Issue with the first approach is that if a user is assigned lots of permissions (e.g from more than one API), then we might need to send multiple requests.
Issue with the second approach is that I need to send at least two request, which means first to get role assigned to this user and then retrieve permissions associated with that role. Also this might miss permissions assigned to the users but not associated with any roles.
Is there a way to get all permission assigned to a user for a specific API in one request?