Altinn / altinn-access-groups

MIT License
0 stars 1 forks source link

Define AccessGroups component #2

Open TheTechArch opened 2 years ago

TheTechArch commented 2 years ago

Description

We need to create a new component responsible for handling the Altinn Access Groups

Altinn Access Groups will replace Altinn roles and will support a hierarchy with endless depth but in practice 2-3 levels.

AccessGroups can be mapped to external parents. Like ER roles.

Additional Information

The component would need to define API for the following

Considerations

The AccessGroup component should support getting external roles and groups. We need to define some kind of standardized Service Interface for external group providers that make it easy to extend the sources of external groups. For every source, there will be a custom implementation.

Model


{
"accessGroupId": 

}

API

List access group membership

This API list all groups that a given user/system/organizations is member of for a given party.

This API needs to consider inheritance from external roles/groups/membership registers. Like Enhetsregisteret.

The membership needs to include information about source of membership.

For performance reasons the consumer of API need to tell which external registry to include.

The component will also need to have default

Add Membership

It will be possible to add a user/system/org to a membership of an access group

Revoke Membership

Create/ Update Group

Export Access Groups

Used to

Import Access Groups

Tasks

Development Task

Acceptance Criteria