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:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user