eclipse-tractusx / portal-frontend

Portal Frontend
Apache License 2.0
4 stars 25 forks source link

Add/edit APP User role for "App Access Management" does not correspond to correct role in backend endpoint #822

Closed typecastcloud closed 1 month ago

typecastcloud commented 1 month ago

Current Behavior

Cl2-CX-Portal "add_user_account" is required to use/see the Add Role button in App Access Management.

Without "modify_user_account" you can't access the endpoint that is used to add the roles.

Expected Behavior

Cl2-CX-Portal "modify_user_account" is required to use the Add Role button in App Access Management.

Endpoint: owncompany/users/{companyUserId}/apps/{appId}/roles @Phil91 should be able to confirm this.

Steps To Reproduce

  1. Have a portal user with "add_user_account" but without "modify_user_account".
  2. Go to User Management and App Access Management
  3. Add button is available but adding roles does not work.

(Other way around: you can't see the button but endpoint can be accessed with token)