Skip to content

Commit

Permalink
docs: adjust delete technical user documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil91 committed Sep 13, 2024
1 parent 164fe46 commit a2270d1
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,23 @@ To delete an user, just open up the user details and click the "delete" button.

update technical user secret

### Delete Service Account
### Delete Technical User

Delete an existing service account
Only service accounts of the own company can get deleted.
Delete an existing technical user
Only technical users of the own company can get deleted.
Permission: "delete_tech_user_management"

As part of the deletion API, the following tasks get executed:

```mermaid
flowchart TD
A(API delete call) -->|Pass the service account id| B["`Receive service account
A(API delete call) -->|Pass the technical user id| B["`Receive technical user
for company`"]
B --> C{Service account exists is active and user has access}
C --> |true| D{"`Linked to active/pending connector`"}
C --> |false| E("Error 404 - serviceAccount {serviceAccountId} not found for company {companyId}")
B --> C{Check technical user}
C --> |existing & active| D{"`Linked to active/pending connector`"}
C --> |not existing| E("Error 404 - serviceAccount {serviceAccountId} does not exist")
C --> |service account not active| P("Error 409 - Service Account {serviceAccountId} is not status active")
C --> |service account owned by other company| Q("Error 403 - Only provider or owner of the service account are allowed to delete it")
D --> |false| F{"`Linked to active
offer subscription`"}
D --> |true| G("`Error 409 - Technical User is linked to an active connector. Change the link or deactivate the connector to delete the technical user.`")
Expand Down

0 comments on commit a2270d1

Please sign in to comment.