Filter the returned permissions based on the scope they apply to. Note that currently, the only available permissions are in the DEPLOYMENT scope.