eclipse-tractusx / portal-backend

Portal Backend
Apache License 2.0
10 stars 22 forks source link

Get technical user for managed connector details api #1088

Open dhiren-singh-007 opened 1 month ago

dhiren-singh-007 commented 1 month ago

API : GET: /api/administration/connectors/{connectorId}

Current Behavior

For owned connectors there is direct linking of technical user so this api returns the technical user. While for managed connector there is indirect linking of technical user via App/Service subscription and this api don't return the technical user .

Expected Behavior

For managed connector this api should return the technical user as it will be convenient for customer/host to see the Connector technical user in connector details view. It should show the technical user which is created on activation of subscription and used to create the managed connector.

Steps To Reproduce

  1. Create a Managed connector
  2. Now click on details arrow in Managed connector list
  3. It will show "No technical user available"

Owned connector detail view: image

Managed connector detail view : image

AnuragNagpure commented 3 weeks ago

@dhiren-singh-007 we can get technical user data through connectors only not associated with offers subscription.

@MaximilianHauer @Phil91

dhiren-singh-007 commented 2 weeks ago

@dhiren-singh-007 we can get technical user data through connectors only not associated with offers subscription.

@MaximilianHauer @Phil91

@AnuragNagpure : For 'Own' connector type there is a direct linking of technical user in Connector table (CompanyServiceAccountId). But IMO We can show the technical user for 'MANAGED' connector via linked subscription , But i just found that connector have one to many relation with table ConnectorOfferAssignedSubscription , However when we create MANAGED connector we can only link once with any subscription. So that means in code we can take First record from this table ConnectorOfferAssignedSubscription for specific connector and get technical user for MANAGED connector @MaximilianHauer @Phil91 : Can you please share your thoughts.