diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 412af21e9..0290d4652 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1321,7 +1321,6 @@ App::get('/v1/account/logs') ->action(function (int $limit, int $offset, Response $response, Document $user, Locale $locale, Reader $geodb, Database $dbForProject, Stats $usage) { $audit = new EventAudit($dbForProject); - var_dump($user); $logs = $audit->getLogsByUser($user->getId(), $limit, $offset); $output = []; diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index 4750c3590..ecf21a22b 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -33,6 +33,7 @@ App::post('/v1/users') ->groups(['api', 'users']) ->label('event', 'users.[userId].create') ->label('scope', 'users.write') + ->label('audits.resource', 'user/{response.$id}') ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) ->label('sdk.namespace', 'users') ->label('sdk.method', 'create')