// Use the permissions associated to that app, if the request is made by an integration associated to an app
$appPermissions = $this->fetchPermissionsIntegrationByApp($integrationId); if($appPermissions !== null){ $source->setIsAdmin(false); $source->setPermissions($appPermissions);