IAM: Implement Delete in Service Account API (#110584)

* wip

* IAM: Create Service Account

* Add dual writer

* Update openapi_test.go

* Add integration tests

* Add sql tests

* Add Role to SA spec, add validation, add DBTime, add tests

* Format, update test

* Fixes

* Add check for External

* wip

* Fix merge

* wip

* Use plugin name instead of title for ext svc account login

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* Remove OrgID from DeleteUserCommand

* Use the new authorizer

* Fix tests

* cleanup

* Move test to enterprise

* Revert unnecessary change

* Address feedback

* Revert "Address feedback"

This reverts commit 8ab9559076.

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
This commit is contained in:
Misi
2025-09-16 15:39:01 +02:00
committed by GitHub
co-authored by Gabriel MABILLE
parent 356521c9b9
commit 29551a6edf
27 changed files with 266 additions and 127 deletions
+1 -2
View File
@@ -1,4 +1,3 @@
-- Delete from user table (org_user will be handled separately to avoid locking)
DELETE FROM {{ .Ident .UserTable }}
WHERE uid = {{ .Arg .Query.UID }}
AND org_id = {{ .Arg .Query.OrgID }}
WHERE uid = {{ .Arg .Command.UID }}