Allow a user to have a scope

Description

Background

See
See spike

Requirements

  • Add a select box with "Scope" when creating or editing a user (at /admin/user/1 and /admin/user/new)

  • The select box contains: all user scopes that have been created () + the scope "Integrated". The scope "Integrated" is the default value

  • Add the same select box when add / edit a relation with "Enable login" (/admin/content/new?type=person)

  • Store the user scope

  • Set the unique to a combination of scope / username (instead of only the username)

  • Do not allow to remove a scope, when it is in use by a user

  • Add user scope to the Behat test at https://github.com/integratedfordevelopers/integrated/blob/0.7/features/user.feature

Technical tasks

None

Deployment actions

Call the following commands:
doctrine:schema:update command
init:scope command

Status

Assignee

Unassigned

Client

Integrated Marijn

Epic Link

Sprint

None

Fix versions

Configure