Note: wait until OPT-2883 is fixed to avoid unnecessary changes regarding scope and role data
Context:
helene.waechtler discovered this bug during here work on OPT-2829. It is currently not happening as the frontend doesn't send these meta properties, however we still should fix that and ensure we only write the id and type property regardless of what is provided.
AT:
- when an identity id provided with name and other metadata attributes (email...) this does not cause an exception in the CollectionWriter.addScopeEntryToCollection