Altinn / altinn-authentication-frontend

Authentication React frontend with BFF
MIT License
1 stars 0 forks source link

Feature: User can administrate a system user for a specific fag system in altinn portal #257

Open acn-dgopa opened 3 months ago

acn-dgopa commented 3 months ago

Description

The user can manually create a system user for a specific fag system in altinn portal.

Actors

Required Roles

User Interface

Administrate access page is the new page in authentication frontend in altinn 3. This page makes it possible to create/edit/delete the system user.

  1. Click on the create sytem user button which presents the interface to write a user name and choose a fagsystem. Once they are filled, the user goes to the next page where the rights for the system that are predefined by the fagsystem is seen. The user can now choose to either delegate the rights and create the system user or cancel the process. If the user chooses to create, the system user is created and necessary rights are delegated.
  2. List of existing system users is listed
  3. Click on an existing system user and is possible to edit system user name
  4. Click on an existing system user and is possible to delete a system user

The wireframes can be found here https://www.figma.com/file/qWEscJDVrA2gDP6oTI4Dfm/Team-Tilgangsinfo?type=design&node-id=30-39316&mode=design

Validations

Api Integration

Acceptance Criteria

### Tasks in Authentication Repo
- [ ] https://github.com/Altinn/altinn-authentication-frontend/issues/193
### Tasks in Authentication-Frontend Repo
- [ ] https://github.com/Altinn/altinn-authentication-frontend/issues/299
- [ ] BFF calls access management Api to ensure that the logged in partyId is an organisation and not a private person
- [ ] BFF calls system register api in authentication to list all the registered systems (gjort, finn tasken)
- [ ] BFF calls system user api in authentication to save the system user.
- [ ] BFF calls new endpoint in access management to save delegations to the system user id ( blocked, waiting for AM to create the endpoint )
- [ ] BFF calls new endpoint in access management to retreive delegations to the system user id ( på overview page ) ( venter litt med denne )
- [ ] It's possible to enter search text in fagsystem to limit the list based on search text (frontend Martin)
- [ ] Limit on number of characters for system user is 255, communicate to the Vendors as a Spec
### Test
- [ ] https://github.com/Altinn/altinn-authentication-frontend/issues/312